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.001254/0.001254, allocations: 102.9 kB / 16.31 MB, free: 6.391 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.001278/0.001278, allocations: 188.5 kB / 17.24 MB, free: 5.922 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.303/1.303, allocations: 222.9 MB / 240.9 MB, free: 15.28 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.05031/0.05031, allocations: 12.05 MB / 303.1 MB, free: 3.211 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 60.11 kB / 366.5 MB, free: 3.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1756/0.1769, allocations: 52.34 MB / 418.8 MB, free: 21.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002481/0.1794, allocations: 2.238 MB / 421 MB, free: 18.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002377/0.1796, allocations: 164.1 kB / 421.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.929e-05/0.1797, allocations: 4 kB / 421.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001073/0.1798, allocations: 27.8 kB / 421.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001221/0.1799, allocations: 43.81 kB / 421.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001315/0.1801, allocations: 43.89 kB / 421.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.673e-05/0.1802, allocations: 83.77 kB / 421.4 MB, free: 18.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.199e-05/0.1803, allocations: 20.22 kB / 421.4 MB, free: 18.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.648e-05/0.1803, allocations: 31.86 kB / 421.4 MB, free: 18.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.867e-05/0.1803, allocations: 35.83 kB / 421.5 MB, free: 18.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.689e-05/0.1804, allocations: 4 kB / 421.5 MB, free: 18.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.1805, allocations: 131.9 kB / 421.6 MB, free: 18.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.79e-05/0.1805, allocations: 15.94 kB / 421.6 MB, free: 18.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.495e-05/0.1806, allocations: 31.8 kB / 421.7 MB, free: 18.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.1807, allocations: 147.6 kB / 421.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1807, allocations: 0 / 421.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1807, allocations: 3.938 kB / 421.8 MB, free: 18.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.1807, allocations: 0 / 421.8 MB, free: 18.09 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.0002872/0.181, allocations: 436.6 kB / 422.2 MB, free: 17.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.462e-05/0.1811, allocations: 12.03 kB / 422.2 MB, free: 17.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.74e-05/0.1811, allocations: 12.75 kB / 422.3 MB, free: 17.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/0.1812, allocations: 200.2 kB / 422.5 MB, free: 17.35 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.1813, allocations: 12.36 kB / 422.5 MB, free: 17.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.1813, allocations: 4.375 kB / 422.5 MB, free: 17.33 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002226/0.1815, allocations: 152.8 kB / 422.6 MB, free: 17.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.1815, allocations: 8.172 kB / 422.6 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.1815, allocations: 7.938 kB / 422.6 MB, free: 17.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1815, allocations: 0 / 422.6 MB, free: 17.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.333e-05/0.1816, allocations: 31.94 kB / 422.7 MB, free: 17.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002335/0.1819, allocations: 297.6 kB / 423 MB, free: 16.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001275/0.182, allocations: 158.2 kB / 423.1 MB, free: 16.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.173e-05/0.1821, allocations: 33.78 kB / 423.1 MB, free: 16.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.1821, allocations: 4 kB / 423.2 MB, free: 16.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.316e-05/0.1821, allocations: 34.56 kB / 423.2 MB, free: 16.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.1821, allocations: 0 / 423.2 MB, free: 16.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002455/0.1824, allocations: 160.9 kB / 423.3 MB, free: 16.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.1824, allocations: 136.5 kB / 423.5 MB, free: 16.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.557e-05/0.1825, allocations: 134.1 kB / 423.6 MB, free: 16.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.566e-06/0.1825, allocations: 25.7 kB / 423.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.827e-05/0.1825, allocations: 100 kB / 423.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.046e-05/0.1825, allocations: 11.84 kB / 423.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.275e-05/0.1826, allocations: 29.7 kB / 423.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.207e-05/0.1826, allocations: 318.8 kB / 424.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.083e-05/0.1826, allocations: 12.25 kB / 424.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.736e-05/0.1827, allocations: 61.94 kB / 424.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.815e-05/0.1828, allocations: 192.6 kB / 424.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.1828, allocations: 0 / 424.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001379/0.1829, allocations: 156.8 kB / 424.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.1829, allocations: 59.39 kB / 424.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.183, allocations: 4 kB / 424.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.183, allocations: 0 / 424.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.472e-05/0.183, allocations: 8.219 kB / 424.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.183, allocations: 4 kB / 424.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.469e-05/0.1831, allocations: 8 kB / 424.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.1831, allocations: 8.094 kB / 424.6 MB, free: 14.91 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.221e-05/0.1831, allocations: 185 kB / 424.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.351e-05/0.1832, allocations: 57.59 kB / 424.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.807e-05/0.1833, allocations: 12.45 kB / 424.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.1833, allocations: 3.984 kB / 424.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1833, allocations: 4 kB / 424.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1833, allocations: 4 kB / 424.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001075/0.1834, allocations: 193.4 kB / 425 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1834, allocations: 0 / 425 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.996e-05/0.1834, allocations: 4 kB / 425 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.1834, allocations: 0 / 425 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.1834, allocations: 4 kB / 425 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.1834, allocations: 3.984 kB / 425 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1835, allocations: 3.938 kB / 425 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001636/0.1836, allocations: 255.7 kB / 425.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.573e-05/0.1836, allocations: 85.09 kB / 425.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.1837, allocations: 4 kB / 425.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.788e-05/0.1837, allocations: 4 kB / 425.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.935e-05/0.1837, allocations: 4 kB / 425.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.1838, allocations: 4 kB / 425.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.468e-05/0.1838, allocations: 99.27 kB / 425.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1838, allocations: 3.938 kB / 425.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002412/0.184, allocations: 35.89 kB / 425.5 MB, free: 13.83 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.0004275/0.1845, allocations: 311.2 kB / 425.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001545/0.1846, allocations: 166.7 kB / 426 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1846, allocations: 4 kB / 426 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.396e-05/0.1847, allocations: 118.8 kB / 426.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002445/0.1849, allocations: 34.3 kB / 426.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002525/0.1852, allocations: 194.8 kB / 426.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.483e-05/0.1853, allocations: 0.6969 MB / 427 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.61e-05/0.1854, allocations: 16.66 kB / 427.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.642e-05/0.1854, allocations: 11.44 kB / 427.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1854, allocations: 0 / 427.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of Templates: time 0.003106/0.1885, allocations: 1.64 MB / 428.7 MB, free: 10.63 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)