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.001096/0.001097, allocations: 108.1 kB / 17.07 MB, free: 6.062 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.001007/0.001008, allocations: 194.9 kB / 18.01 MB, free: 5.152 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.218/1.218, allocations: 222.9 MB / 241.7 MB, free: 15.1 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.05599/0.05599, allocations: 12.04 MB / 303.9 MB, free: 3.133 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 63.89 kB / 367.9 MB, free: 3.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1815/0.1827, allocations: 52.32 MB / 420.2 MB, free: 20.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002925/0.1856, allocations: 2.252 MB / 422.5 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000252/0.1859, allocations: 167.1 kB / 422.6 MB, free: 18.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.381e-05/0.186, allocations: 0 / 422.6 MB, free: 18.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.1861, allocations: 31.78 kB / 422.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000132/0.1862, allocations: 43.81 kB / 422.7 MB, free: 18.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001587/0.1864, allocations: 43.89 kB / 422.8 MB, free: 18.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.1865, allocations: 75.78 kB / 422.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.507e-05/0.1866, allocations: 32.19 kB / 422.9 MB, free: 18.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.127e-05/0.1867, allocations: 27.86 kB / 422.9 MB, free: 18.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.152e-05/0.1867, allocations: 35.84 kB / 422.9 MB, free: 18.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.673e-05/0.1867, allocations: 6.812 kB / 422.9 MB, free: 18.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.1869, allocations: 135.9 kB / 423.1 MB, free: 18.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.035e-05/0.1869, allocations: 7.938 kB / 423.1 MB, free: 18.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.847e-05/0.1869, allocations: 35.8 kB / 423.1 MB, free: 18.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001738/0.1871, allocations: 151.5 kB / 423.3 MB, free: 17.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1871, allocations: 0 / 423.3 MB, free: 17.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1871, allocations: 0 / 423.3 MB, free: 17.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.008e-06/0.1872, allocations: 4 kB / 423.3 MB, free: 17.93 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.0003346/0.1875, allocations: 436.3 kB / 423.7 MB, free: 17.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.737e-05/0.1875, allocations: 12.03 kB / 423.7 MB, free: 17.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.157e-05/0.1876, allocations: 20.69 kB / 423.7 MB, free: 17.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000194/0.1878, allocations: 192.2 kB / 423.9 MB, free: 17.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.492e-05/0.1878, allocations: 8.375 kB / 423.9 MB, free: 17.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.1878, allocations: 4.375 kB / 423.9 MB, free: 17.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002481/0.1881, allocations: 157.5 kB / 424.1 MB, free: 17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.1881, allocations: 192 / 424.1 MB, free: 17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.1881, allocations: 3.938 kB / 424.1 MB, free: 17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.1881, allocations: 0 / 424.1 MB, free: 17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.792e-05/0.1882, allocations: 35.92 kB / 424.1 MB, free: 16.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002477/0.1884, allocations: 293.7 kB / 424.4 MB, free: 16.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001366/0.1886, allocations: 154.2 kB / 424.6 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.417e-05/0.1886, allocations: 33.78 kB / 424.6 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.1887, allocations: 4 kB / 424.6 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.456e-05/0.1887, allocations: 38.56 kB / 424.6 MB, free: 16.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.292e-06/0.1887, allocations: 0 / 424.6 MB, free: 16.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002657/0.189, allocations: 160.9 kB / 424.8 MB, free: 16.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.189, allocations: 140.5 kB / 424.9 MB, free: 16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.794e-05/0.1891, allocations: 137.3 kB / 425.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.978e-06/0.1891, allocations: 25.7 kB / 425.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.258e-05/0.1892, allocations: 99.98 kB / 425.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.189e-05/0.1892, allocations: 23.84 kB / 425.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.631e-05/0.1892, allocations: 25.72 kB / 425.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.004e-05/0.1893, allocations: 322.8 kB / 425.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.325e-05/0.1893, allocations: 8 kB / 425.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.146e-05/0.1893, allocations: 54 kB / 425.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.576e-05/0.1894, allocations: 188.6 kB / 425.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1894, allocations: 0 / 425.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001474/0.1896, allocations: 161 kB / 425.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.1896, allocations: 59.41 kB / 426 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1896, allocations: 4.234 kB / 426 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.1897, allocations: 4.094 kB / 426 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.505e-05/0.1897, allocations: 11.94 kB / 426 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.1897, allocations: 4 kB / 426 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.781e-05/0.1898, allocations: 11.92 kB / 426 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.1898, allocations: 8 kB / 426 MB, free: 14.74 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 7.619e-05/0.1899, allocations: 177.4 kB / 426.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.634e-05/0.19, allocations: 61.59 kB / 426.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.218e-05/0.19, allocations: 8.312 kB / 426.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.19, allocations: 0 / 426.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.19, allocations: 4 kB / 426.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.19, allocations: 0 / 426.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001147/0.1901, allocations: 193.4 kB / 426.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1901, allocations: 0 / 426.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.258e-05/0.1902, allocations: 11.92 kB / 426.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1902, allocations: 0 / 426.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.1902, allocations: 12 kB / 426.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1902, allocations: 0 / 426.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1902, allocations: 0 / 426.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000176/0.1904, allocations: 255.6 kB / 426.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.786e-05/0.1904, allocations: 81.05 kB / 426.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.1904, allocations: 4 kB / 426.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.088e-05/0.1905, allocations: 4 kB / 426.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.113e-05/0.1905, allocations: 8 kB / 426.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.1905, allocations: 4 kB / 426.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.854e-05/0.1906, allocations: 103.2 kB / 427 MB, free: 13.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1906, allocations: 3.938 kB / 427 MB, free: 13.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002582/0.1908, allocations: 31.91 kB / 427 MB, free: 13.67 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.0004954/0.1913, allocations: 297.8 kB / 427.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001737/0.1915, allocations: 174.7 kB / 427.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1915, allocations: 0 / 427.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.635e-05/0.1916, allocations: 114.8 kB / 427.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.1919, allocations: 35.89 kB / 427.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002746/0.1921, allocations: 186.8 kB / 427.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.243e-05/0.1923, allocations: 0.6974 MB / 428.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.205e-05/0.1923, allocations: 12.66 kB / 428.5 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.641e-05/0.1923, allocations: 11.44 kB / 428.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1923, allocations: 0 / 428.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of Templates: time 0.003434/0.1958, allocations: 1.657 MB / 430.2 MB, free: 10.47 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 -s cvode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1)