Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.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.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 106.2 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.0009427/0.0009428, allocations: 189.8 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.265/1.265, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.05044/0.05044, allocations: 12.05 MB / 303.1 MB, free: 3.211 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 63.89 kB / 366.5 MB, free: 3.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.1769, allocations: 52.32 MB / 418.8 MB, free: 21.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.002661/0.1796, allocations: 2.238 MB / 421 MB, free: 18.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002021/0.1798, allocations: 127.5 kB / 421.1 MB, free: 18.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.041e-05/0.1799, allocations: 7.938 kB / 421.2 MB, free: 18.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000126/0.18, allocations: 23.84 kB / 421.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.325e-05/0.1801, allocations: 7.938 kB / 421.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001602/0.1803, allocations: 42.55 kB / 421.2 MB, free: 18.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001081/0.1804, allocations: 79.78 kB / 421.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.178e-05/0.1805, allocations: 32.19 kB / 421.3 MB, free: 18.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.054e-05/0.1805, allocations: 31.86 kB / 421.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.337e-05/0.1806, allocations: 31.84 kB / 421.4 MB, free: 18.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.032e-05/0.1806, allocations: 8 kB / 421.4 MB, free: 18.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.752e-05/0.1807, allocations: 27.98 kB / 421.4 MB, free: 18.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.204e-05/0.1807, allocations: 26.27 kB / 421.5 MB, free: 18.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.68e-05/0.1808, allocations: 39.73 kB / 421.5 MB, free: 18.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001318/0.1809, allocations: 107.6 kB / 421.6 MB, free: 18.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1809, allocations: 4 kB / 421.6 MB, free: 18.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1809, allocations: 0 / 421.6 MB, free: 18.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.1809, allocations: 0 / 421.6 MB, free: 18.28 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003019/0.1812, allocations: 444.7 kB / 422 MB, free: 17.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.703e-05/0.1813, allocations: 15.95 kB / 422.1 MB, free: 17.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.808e-05/0.1813, allocations: 16.75 kB / 422.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001328/0.1814, allocations: 188.2 kB / 422.3 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.1815, allocations: 8.375 kB / 422.3 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/0.1815, allocations: 16.36 kB / 422.3 MB, free: 17.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.1818, allocations: 263.7 kB / 422.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.1818, allocations: 0 / 422.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.1818, allocations: 4 kB / 422.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.1818, allocations: 11.98 kB / 422.6 MB, free: 17.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.575e-05/0.1819, allocations: 59.97 kB / 422.6 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002392/0.1822, allocations: 301.6 kB / 422.9 MB, free: 16.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001282/0.1823, allocations: 133.4 kB / 423 MB, free: 16.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.891e-05/0.1824, allocations: 69.78 kB / 423.1 MB, free: 16.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.909e-06/0.1824, allocations: 0 / 423.1 MB, free: 16.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.573e-05/0.1824, allocations: 42.5 kB / 423.1 MB, free: 16.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.002e-06/0.1824, allocations: 0 / 423.1 MB, free: 16.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003038/0.1827, allocations: 259.1 kB / 423.4 MB, free: 16.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/0.1828, allocations: 144.4 kB / 423.5 MB, free: 16.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.182e-05/0.1828, allocations: 117.8 kB / 423.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.898e-06/0.1829, allocations: 33.83 kB / 423.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.014e-05/0.1829, allocations: 92.44 kB / 423.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-05/0.1829, allocations: 23.75 kB / 423.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.193e-05/0.183, allocations: 41.7 kB / 423.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.024e-05/0.183, allocations: 326.8 kB / 424.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.674e-05/0.1831, allocations: 27.98 kB / 424.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.088e-05/0.1831, allocations: 150.7 kB / 424.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.1833, allocations: 315.7 kB / 424.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1833, allocations: 0 / 424.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002251/0.1835, allocations: 252.9 kB / 424.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.1836, allocations: 59.41 kB / 425 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.1836, allocations: 4 kB / 425 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.1836, allocations: 11.94 kB / 425 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.364e-05/0.1837, allocations: 27.92 kB / 425 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.066e-06/0.1837, allocations: 11.92 kB / 425 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.862e-05/0.1837, allocations: 19.91 kB / 425 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.1838, allocations: 12 kB / 425 MB, free: 14.39 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 19 (synchronizeRealtime.initialized,keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],keyboardInput.KeyCode[6],keyboardInput.KeyCode[5],keyboardInput.KeyCode[4],keyboardInput.KeyCode[3],keyboardInput.KeyCode[2],keyboardInput.KeyCode[1],keyboardInput.keySpace,keyboardInput.keyReturn,keyboardInput.keyLeft,keyboardInput.keyRight,keyboardInput.keyDown,keyboardInput.keyUp,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * 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.0001141/0.1839, allocations: 203.6 kB / 425.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.184, allocations: 127.8 kB / 425.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.153e-05/0.184, allocations: 12.78 kB / 425.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.184, allocations: 11.94 kB / 425.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.184, allocations: 0 / 425.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1841, allocations: 0 / 425.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001098/0.1842, allocations: 193.5 kB / 425.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1842, allocations: 0 / 425.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.357e-06/0.1842, allocations: 4 kB / 425.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1842, allocations: 8 kB / 425.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.537e-06/0.1842, allocations: 0 / 425.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1842, allocations: 3.938 kB / 425.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1842, allocations: 4 kB / 425.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002085/0.1844, allocations: 317.4 kB / 425.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.036e-05/0.1845, allocations: 96.88 kB / 426 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.1845, allocations: 4 kB / 426 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.036e-05/0.1845, allocations: 11.98 kB / 426 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.825e-05/0.1846, allocations: 4 kB / 426 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.1846, allocations: 8 kB / 426 MB, free: 13.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.042e-05/0.1846, allocations: 91.27 kB / 426.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1846, allocations: 0 / 426.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002675/0.1849, allocations: 24 kB / 426.1 MB, free: 13.16 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: 19 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardInput.keyUp,keyboardInput.keyDown,keyboardInput.keyRight,keyboardInput.keyLeft,keyboardInput.keyReturn,keyboardInput.keySpace,keyboardInput.KeyCode[1],keyboardInput.KeyCode[2],keyboardInput.KeyCode[3],keyboardInput.KeyCode[4],keyboardInput.KeyCode[5],keyboardInput.KeyCode[6],keyboardInput.KeyCode[7],keyboardInput.KeyCode[8],keyboardInput.KeyCode[9],keyboardInput.KeyCode[10]) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 1 * 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.0004168/0.1853, allocations: 266 kB / 426.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002238/0.1856, allocations: 254.4 kB / 426.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1856, allocations: 0 / 426.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.436e-05/0.1856, allocations: 116.1 kB / 426.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.1859, allocations: 89.77 kB / 426.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003061/0.1862, allocations: 243.8 kB / 427.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.1863, allocations: 0.7233 MB / 427.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.27e-05/0.1864, allocations: 12.88 kB / 427.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.631e-05/0.1864, allocations: 15.42 kB / 427.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1864, allocations: 0 / 427.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of Templates: time 0.003179/0.1896, allocations: 1.512 MB / 429.3 MB, free: 9.914 MB / 302.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1)