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.001032/0.001032, allocations: 109.6 kB / 16.03 MB, free: 6.309 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.001061/0.001062, allocations: 191.1 kB / 16.95 MB, free: 6.137 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.229/1.229, allocations: 222.9 MB / 240.6 MB, free: 13.72 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.0498/0.0498, allocations: 12.03 MB / 302.8 MB, free: 3.152 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 63.89 kB / 365.9 MB, free: 3.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.22, allocations: 52.33 MB / 418.3 MB, free: 21.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.003019/0.223, allocations: 2.29 MB / 420.6 MB, free: 18.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002641/0.2233, allocations: 179.5 kB / 420.7 MB, free: 18.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.413e-05/0.2234, allocations: 0 / 420.7 MB, free: 18.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000167/0.2236, allocations: 15.88 kB / 420.8 MB, free: 18.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.2238, allocations: 35.89 kB / 420.8 MB, free: 18.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001667/0.2239, allocations: 43.08 kB / 420.8 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001189/0.2241, allocations: 79.77 kB / 420.9 MB, free: 18.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.878e-05/0.2242, allocations: 20.22 kB / 420.9 MB, free: 18.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.266e-05/0.2242, allocations: 35.8 kB / 421 MB, free: 18.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.946e-05/0.2243, allocations: 35.83 kB / 421 MB, free: 18.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.786e-05/0.2243, allocations: 8 kB / 421 MB, free: 18.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.2244, allocations: 135.9 kB / 421.1 MB, free: 18.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.897e-05/0.2244, allocations: 11.94 kB / 421.2 MB, free: 18.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.573e-05/0.2245, allocations: 31.8 kB / 421.2 MB, free: 18.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001664/0.2247, allocations: 143.6 kB / 421.3 MB, free: 18.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2247, allocations: 0 / 421.3 MB, free: 18.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2247, allocations: 0 / 421.3 MB, free: 18.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.2247, allocations: 0 / 421.3 MB, free: 18.2 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.0003521/0.225, allocations: 448.6 kB / 421.8 MB, free: 17.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.2251, allocations: 8.031 kB / 421.8 MB, free: 17.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.719e-05/0.2251, allocations: 12.75 kB / 421.8 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001536/0.2253, allocations: 200.1 kB / 422 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.2253, allocations: 4.375 kB / 422 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.2253, allocations: 4.375 kB / 422 MB, free: 17.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002485/0.2256, allocations: 161.4 kB / 422.1 MB, free: 17.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.2256, allocations: 192 / 422.1 MB, free: 17.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.2256, allocations: 7.938 kB / 422.2 MB, free: 17.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.2256, allocations: 0 / 422.2 MB, free: 17.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.336e-05/0.2257, allocations: 27.98 kB / 422.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002572/0.2259, allocations: 305.6 kB / 422.5 MB, free: 16.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.2261, allocations: 150.3 kB / 422.6 MB, free: 16.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.494e-05/0.2262, allocations: 37.78 kB / 422.7 MB, free: 16.65 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.2262, allocations: 4 kB / 422.7 MB, free: 16.65 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.495e-05/0.2262, allocations: 42.5 kB / 422.7 MB, free: 16.6 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.021e-06/0.2262, allocations: 0 / 422.7 MB, free: 16.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002723/0.2265, allocations: 164.9 kB / 422.9 MB, free: 16.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.2266, allocations: 136.5 kB / 423 MB, free: 16.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.725e-05/0.2266, allocations: 133.6 kB / 423.1 MB, free: 16.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.2267, allocations: 33.7 kB / 423.2 MB, free: 16.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.355e-05/0.2267, allocations: 88.05 kB / 423.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.326e-05/0.2267, allocations: 19.83 kB / 423.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.345e-05/0.2267, allocations: 25.75 kB / 423.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.484e-05/0.2268, allocations: 322.8 kB / 423.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.148e-05/0.2268, allocations: 12 kB / 423.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.042e-05/0.2269, allocations: 54 kB / 423.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.56e-05/0.227, allocations: 188.6 kB / 423.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.227, allocations: 3.938 kB / 423.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001524/0.2271, allocations: 161.1 kB / 424 MB, free: 15.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/0.2272, allocations: 63.41 kB / 424.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2272, allocations: 0 / 424.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2272, allocations: 4 kB / 424.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.059e-05/0.2272, allocations: 7.938 kB / 424.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.2273, allocations: 4 kB / 424.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.586e-05/0.2273, allocations: 7.984 kB / 424.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/0.2273, allocations: 4 kB / 424.1 MB, free: 15.01 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.109e-05/0.2274, allocations: 177.3 kB / 424.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.262e-05/0.2275, allocations: 69.53 kB / 424.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.163e-05/0.2275, allocations: 8.406 kB / 424.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2275, allocations: 7.938 kB / 424.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.2275, allocations: 0 / 424.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.2275, allocations: 0 / 424.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001168/0.2277, allocations: 189.4 kB / 424.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.2277, allocations: 0 / 424.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.119e-05/0.2277, allocations: 11.98 kB / 424.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.2277, allocations: 0 / 424.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.2277, allocations: 4 kB / 424.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.2277, allocations: 4.312 kB / 424.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2277, allocations: 0 / 424.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001732/0.2279, allocations: 267.6 kB / 424.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.748e-05/0.2279, allocations: 81.11 kB / 424.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.2279, allocations: 4 kB / 424.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.896e-05/0.228, allocations: 0 / 424.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.658e-05/0.228, allocations: 4 kB / 424.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.228, allocations: 12 kB / 424.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.751e-05/0.2281, allocations: 99.25 kB / 425 MB, free: 13.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.2281, allocations: 0 / 425 MB, free: 13.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00025/0.2283, allocations: 39.84 kB / 425.1 MB, free: 13.92 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.0004864/0.2288, allocations: 286.6 kB / 425.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001674/0.229, allocations: 178.9 kB / 425.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.229, allocations: 0 / 425.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.398e-05/0.2291, allocations: 118.8 kB / 425.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.2293, allocations: 38.12 kB / 425.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000341/0.2297, allocations: 223 kB / 425.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.369e-05/0.2298, allocations: 0.693 MB / 426.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.667e-05/0.2299, allocations: 12.66 kB / 426.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.697e-05/0.2299, allocations: 11.44 kB / 426.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2299, allocations: 0 / 426.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of Templates: time 0.00369/0.2336, allocations: 1.677 MB / 428.3 MB, free: 10.68 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)