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: "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 104.2 kB / 16.31 MB, free: 5.879 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.00106/0.001061, allocations: 190.2 kB / 17.24 MB, free: 5.539 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.228/1.228, allocations: 222.9 MB / 240.9 MB, free: 15.17 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.05364/0.05364, allocations: 12.04 MB / 303.1 MB, free: 3.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 60.11 kB / 366.6 MB, free: 3.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.1788, allocations: 52.34 MB / 418.9 MB, free: 21.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002979/0.1818, allocations: 2.244 MB / 421.1 MB, free: 18.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002741/0.1821, allocations: 167.4 kB / 421.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.992e-05/0.1822, allocations: 4 kB / 421.3 MB, free: 18.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.1824, allocations: 23.23 kB / 421.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.1825, allocations: 39.83 kB / 421.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001566/0.1827, allocations: 51.88 kB / 421.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000113/0.1828, allocations: 79.77 kB / 421.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.975e-05/0.1829, allocations: 16.23 kB / 421.5 MB, free: 18.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.594e-05/0.183, allocations: 35.84 kB / 421.6 MB, free: 18.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.112e-05/0.183, allocations: 35.78 kB / 421.6 MB, free: 18.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.992e-05/0.183, allocations: 8 kB / 421.6 MB, free: 18.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.1832, allocations: 127.9 kB / 421.7 MB, free: 18.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.058e-05/0.1832, allocations: 19.92 kB / 421.7 MB, free: 18.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.895e-05/0.1832, allocations: 35.81 kB / 421.8 MB, free: 18.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001801/0.1834, allocations: 139.6 kB / 421.9 MB, free: 18.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1834, allocations: 0 / 421.9 MB, free: 18.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1834, allocations: 0 / 421.9 MB, free: 18.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.177e-06/0.1835, allocations: 4 kB / 421.9 MB, free: 18.03 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.0003532/0.1838, allocations: 436.9 kB / 422.3 MB, free: 17.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.1839, allocations: 8.031 kB / 422.3 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.036e-05/0.1839, allocations: 42.73 kB / 422.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.474e-05/0.1839, allocations: 16.75 kB / 422.4 MB, free: 17.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001632/0.1841, allocations: 200.1 kB / 422.6 MB, free: 17.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.1841, allocations: 8.375 kB / 422.6 MB, free: 17.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.606e-05/0.1841, allocations: 4.375 kB / 422.6 MB, free: 17.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002552/0.1844, allocations: 161.5 kB / 422.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.1844, allocations: 3.938 kB / 422.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.1844, allocations: 0 / 422.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.1844, allocations: 0 / 422.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.865e-05/0.1845, allocations: 31.98 kB / 422.8 MB, free: 17.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002648/0.1848, allocations: 301.6 kB / 423.1 MB, free: 16.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001458/0.1849, allocations: 154.3 kB / 423.3 MB, free: 16.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.596e-05/0.185, allocations: 33.78 kB / 423.3 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.855e-05/0.185, allocations: 4 kB / 423.3 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.642e-05/0.1851, allocations: 38.5 kB / 423.3 MB, free: 16.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.1851, allocations: 3.938 kB / 423.3 MB, free: 16.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002679/0.1853, allocations: 160.9 kB / 423.5 MB, free: 16.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.1854, allocations: 140.5 kB / 423.6 MB, free: 16.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.868e-05/0.1855, allocations: 133.1 kB / 423.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.1855, allocations: 25.7 kB / 423.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.348e-05/0.1855, allocations: 100 kB / 423.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.195e-05/0.1855, allocations: 11.84 kB / 423.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.661e-05/0.1856, allocations: 29.7 kB / 423.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.312e-05/0.1856, allocations: 322.8 kB / 424.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.558e-05/0.1857, allocations: 15.98 kB / 424.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.084e-05/0.1857, allocations: 57.94 kB / 424.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.406e-05/0.1858, allocations: 181 kB / 424.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.1858, allocations: 0 / 424.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001473/0.186, allocations: 160.9 kB / 424.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.186, allocations: 61.42 kB / 424.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.186, allocations: 4.219 kB / 424.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.186, allocations: 4 kB / 424.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.954e-05/0.1861, allocations: 11.94 kB / 424.7 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.1861, allocations: 4 kB / 424.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.786e-05/0.1861, allocations: 4 kB / 424.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.1862, allocations: 8 kB / 424.7 MB, free: 14.79 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.021e-05/0.1862, allocations: 177.2 kB / 424.9 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.601e-05/0.1863, allocations: 61.55 kB / 425 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.026e-05/0.1864, allocations: 12.3 kB / 425 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1864, allocations: 0 / 425 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1864, allocations: 8.141 kB / 425 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1864, allocations: 3.984 kB / 425 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001132/0.1865, allocations: 193.4 kB / 425.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1865, allocations: 0 / 425.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.085e-05/0.1865, allocations: 4 kB / 425.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1865, allocations: 0 / 425.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.1865, allocations: 4 kB / 425.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.1866, allocations: 0 / 425.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1866, allocations: 0 / 425.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001765/0.1867, allocations: 275.6 kB / 425.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.664e-05/0.1868, allocations: 81.02 kB / 425.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.076e-05/0.1868, allocations: 7.984 kB / 425.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.353e-05/0.1868, allocations: 4 kB / 425.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.218e-05/0.1869, allocations: 4.094 kB / 425.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.1869, allocations: 7.938 kB / 425.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.638e-05/0.1869, allocations: 103.2 kB / 425.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1869, allocations: 0 / 425.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002589/0.1872, allocations: 31.98 kB / 425.7 MB, free: 13.7 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.0006989/0.1879, allocations: 0.9784 MB / 426.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001752/0.1881, allocations: 170.7 kB / 426.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1881, allocations: 0 / 426.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.816e-05/0.1882, allocations: 126.8 kB / 427 MB, free: 12.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.1884, allocations: 27.97 kB / 427 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000969/0.1894, allocations: 1.559 MB / 428.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.696e-05/0.1895, allocations: 0.693 MB / 429.2 MB, free: 9.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.905e-05/0.1896, allocations: 12.59 kB / 429.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.196e-05/0.1896, allocations: 27.44 kB / 429.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1896, allocations: 0 / 429.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01629/0.2059, allocations: 3.104 MB / 432.4 MB, free: 6.973 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.283/7.489, allocations: 11.58 kB / 432.4 MB, free: 6.961 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1)