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.001271/0.001271, allocations: 104.5 kB / 16.98 MB, free: 6.137 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.001355/0.001356, allocations: 189.3 kB / 17.91 MB, free: 5.234 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.419/1.419, allocations: 222.9 MB / 241.6 MB, free: 15.16 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.05974/0.05974, allocations: 12.05 MB / 303.8 MB, free: 3.168 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 67.89 kB / 367.1 MB, free: 3.785 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1742/0.1761, allocations: 52.33 MB / 419.5 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002868/0.179, allocations: 2.253 MB / 421.7 MB, free: 18.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002637/0.1793, allocations: 167.2 kB / 421.9 MB, free: 18.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.61e-05/0.1793, allocations: 4 kB / 421.9 MB, free: 18.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.1795, allocations: 11.88 kB / 421.9 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001369/0.1796, allocations: 47.8 kB / 421.9 MB, free: 18.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001433/0.1798, allocations: 47.83 kB / 422 MB, free: 18.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000109/0.1799, allocations: 79.78 kB / 422.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.038e-05/0.18, allocations: 21.31 kB / 422.1 MB, free: 18.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.014e-05/0.18, allocations: 35.8 kB / 422.1 MB, free: 18.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.923e-05/0.1801, allocations: 35.83 kB / 422.2 MB, free: 18.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.865e-05/0.1801, allocations: 12 kB / 422.2 MB, free: 18.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001288/0.1802, allocations: 131.9 kB / 422.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.968e-05/0.1803, allocations: 11.94 kB / 422.3 MB, free: 18.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.849e-05/0.1803, allocations: 35.78 kB / 422.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001768/0.1805, allocations: 139.6 kB / 422.5 MB, free: 18.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.1805, allocations: 0 / 422.5 MB, free: 18.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1805, allocations: 4 kB / 422.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.1805, allocations: 0 / 422.5 MB, free: 18.04 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.0003427/0.1809, allocations: 436.7 kB / 422.9 MB, free: 17.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.62e-05/0.1809, allocations: 12.03 kB / 422.9 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.195e-05/0.1809, allocations: 20.62 kB / 422.9 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.1811, allocations: 200.1 kB / 423.1 MB, free: 17.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.1811, allocations: 8.375 kB / 423.1 MB, free: 17.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.1811, allocations: 4.375 kB / 423.2 MB, free: 17.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002499/0.1814, allocations: 158.6 kB / 423.3 MB, free: 17.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.1814, allocations: 192 / 423.3 MB, free: 17.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.1814, allocations: 7.938 kB / 423.3 MB, free: 17.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.1814, allocations: 7.984 kB / 423.3 MB, free: 17.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.786e-05/0.1815, allocations: 20 kB / 423.3 MB, free: 17.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002476/0.1818, allocations: 293.6 kB / 423.6 MB, free: 16.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.1819, allocations: 158.2 kB / 423.8 MB, free: 16.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.692e-05/0.182, allocations: 37.78 kB / 423.8 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.182, allocations: 0 / 423.8 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.767e-05/0.182, allocations: 38.5 kB / 423.9 MB, free: 16.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.182, allocations: 0 / 423.9 MB, free: 16.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.000275/0.1823, allocations: 165 kB / 424 MB, free: 16.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.1824, allocations: 136.5 kB / 424.2 MB, free: 16.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.457e-05/0.1824, allocations: 137.2 kB / 424.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.045e-05/0.1825, allocations: 29.7 kB / 424.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.348e-05/0.1825, allocations: 92.05 kB / 424.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.134e-05/0.1825, allocations: 15.84 kB / 424.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.44e-05/0.1826, allocations: 25.7 kB / 424.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.605e-05/0.1826, allocations: 322.9 kB / 424.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.396e-05/0.1826, allocations: 16 kB / 424.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.956e-05/0.1827, allocations: 54 kB / 424.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.421e-05/0.1828, allocations: 184.6 kB / 425 MB, free: 15.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1828, allocations: 0 / 425 MB, free: 15.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001478/0.1829, allocations: 152.9 kB / 425.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.183, allocations: 67.33 kB / 425.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.183, allocations: 4.219 kB / 425.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.183, allocations: 4.094 kB / 425.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.808e-05/0.183, allocations: 15.88 kB / 425.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.94e-06/0.183, allocations: 4 kB / 425.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.682e-05/0.1831, allocations: 4 kB / 425.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.1831, allocations: 4 kB / 425.3 MB, free: 14.86 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.578e-05/0.1832, allocations: 181.2 kB / 425.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.851e-05/0.1833, allocations: 65.78 kB / 425.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.958e-05/0.1833, allocations: 8.375 kB / 425.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1833, allocations: 12 kB / 425.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1833, allocations: 0 / 425.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1833, allocations: 0 / 425.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000113/0.1834, allocations: 189.4 kB / 425.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1834, allocations: 0 / 425.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.07e-05/0.1835, allocations: 4 kB / 425.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1835, allocations: 4 kB / 425.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.1835, allocations: 7.984 kB / 425.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1835, allocations: 0 / 425.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1835, allocations: 4 kB / 425.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001785/0.1837, allocations: 267.7 kB / 426 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.639e-05/0.1837, allocations: 77.11 kB / 426.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.1837, allocations: 8 kB / 426.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.127e-05/0.1838, allocations: 4 kB / 426.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.143e-05/0.1838, allocations: 0 / 426.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.1838, allocations: 8 kB / 426.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.715e-05/0.1839, allocations: 99.25 kB / 426.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1839, allocations: 4 kB / 426.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002595/0.1841, allocations: 35.91 kB / 426.2 MB, free: 13.77 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.0006424/0.1848, allocations: 293.7 kB / 426.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001764/0.185, allocations: 170.7 kB / 426.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.185, allocations: 448 / 426.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.73e-05/0.185, allocations: 126.8 kB / 426.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002631/0.1853, allocations: 32.08 kB / 426.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002719/0.1856, allocations: 212.8 kB / 427 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.074e-05/0.1857, allocations: 0.7009 MB / 427.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.649e-05/0.1857, allocations: 11.44 kB / 427.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of SimCode: time 7.02e-07/0.1857, allocations: 0 / 427.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of Templates: time 0.003123/0.1888, allocations: 2.265 MB / 430 MB, free: 9.941 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)