Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 105.9 kB / 16.69 MB, free: 6.328 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.001111/0.001112, allocations: 194 kB / 17.61 MB, free: 5.723 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.297/1.297, allocations: 222.9 MB / 241.3 MB, free: 15.44 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.05634/0.05634, allocations: 12.04 MB / 303.5 MB, free: 3.379 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 63.91 kB / 366.6 MB, free: 4.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2202/0.2216, allocations: 52.32 MB / 418.9 MB, free: 21.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.004248/0.2258, allocations: 2.677 MB / 421.6 MB, free: 18.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005721/0.2264, allocations: 299 kB / 421.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000199/0.2267, allocations: 7.875 kB / 421.9 MB, free: 18.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003041/0.227, allocations: 47.61 kB / 422 MB, free: 18.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001107/0.2271, allocations: 11.86 kB / 422 MB, free: 18.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002826/0.2274, allocations: 87.73 kB / 422.1 MB, free: 18.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002174/0.2277, allocations: 136.1 kB / 422.2 MB, free: 18.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.2279, allocations: 78.5 kB / 422.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.767e-05/0.228, allocations: 67.72 kB / 422.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.031e-05/0.2281, allocations: 59.7 kB / 422.4 MB, free: 17.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.88e-05/0.2281, allocations: 16 kB / 422.4 MB, free: 17.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.192e-05/0.2282, allocations: 31.97 kB / 422.4 MB, free: 17.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.241e-05/0.2283, allocations: 47.84 kB / 422.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.659e-05/0.2284, allocations: 75.55 kB / 422.6 MB, free: 17.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002334/0.2286, allocations: 145.6 kB / 422.7 MB, free: 17.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2286, allocations: 8 kB / 422.7 MB, free: 17.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.2286, allocations: 0 / 422.7 MB, free: 17.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.2286, allocations: 0 / 422.7 MB, free: 17.5 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005678/0.2292, allocations: 470.9 kB / 423.2 MB, free: 16.99 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.2293, allocations: 8.031 kB / 423.2 MB, free: 16.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.339e-05/0.2293, allocations: 20.66 kB / 423.2 MB, free: 16.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002186/0.2296, allocations: 228 kB / 423.4 MB, free: 16.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.2296, allocations: 12.38 kB / 423.4 MB, free: 16.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.463e-05/0.2296, allocations: 12.38 kB / 423.4 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.2299, allocations: 187.8 kB / 423.6 MB, free: 16.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.2299, allocations: 192 / 423.6 MB, free: 16.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/0.2299, allocations: 19.92 kB / 423.6 MB, free: 16.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.23, allocations: 4 kB / 423.7 MB, free: 16.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.2301, allocations: 122.5 kB / 423.8 MB, free: 16.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006556/0.2308, allocations: 477.4 kB / 424.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001477/0.231, allocations: 121.1 kB / 424.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.696e-05/0.231, allocations: 77.69 kB / 424.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.587e-05/0.2311, allocations: 4.062 kB / 424.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002511/0.2313, allocations: 129.1 kB / 424.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.2313, allocations: 0 / 424.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003608/0.2317, allocations: 251.3 kB / 424.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.2318, allocations: 85.11 kB / 424.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.2319, allocations: 155.7 kB / 425 MB, free: 14.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.2319, allocations: 33.7 kB / 425.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.529e-05/0.232, allocations: 128.6 kB / 425.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.793e-05/0.232, allocations: 59.34 kB / 425.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.503e-05/0.2321, allocations: 53.98 kB / 425.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.525e-05/0.2322, allocations: 338.8 kB / 425.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.2323, allocations: 72.23 kB / 425.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.2324, allocations: 170 kB / 425.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.2326, allocations: 250.9 kB / 426.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.2327, allocations: 0 / 426.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003353/0.233, allocations: 273.1 kB / 426.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.233, allocations: 4 kB / 426.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.233, allocations: 4 kB / 426.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.2331, allocations: 4.188 kB / 426.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.2332, allocations: 40.17 kB / 426.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.2332, allocations: 11.92 kB / 426.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.742e-05/0.2333, allocations: 19.81 kB / 426.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.738e-05/0.2333, allocations: 12 kB / 426.5 MB, free: 13.38 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 27 (keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],$PRE.keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.KeyCode[6],$PRE.keyboardInput.KeyCode[6],keyboardInput.keySpace,keyboardInput.KeyCode[5],$PRE.keyboardInput.KeyCode[5],keyboardInput.keyReturn,keyboardInput.KeyCode[4],$PRE.keyboardInput.KeyCode[4],keyboardInput.keyLeft,keyboardInput.KeyCode[3],$PRE.keyboardInput.KeyCode[3],keyboardInput.keyRight,keyboardInput.KeyCode[2],$PRE.keyboardInput.KeyCode[2],keyboardInput.keyDown,keyboardInput.KeyCode[1],$PRE.keyboardInput.KeyCode[1],keyboardInput.keyUp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001432/0.2335, allocations: 174.6 kB / 426.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.375e-05/0.2335, allocations: 15.81 kB / 426.7 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.111e-05/0.2336, allocations: 21.17 kB / 426.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.2336, allocations: 4 kB / 426.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.2336, allocations: 3.938 kB / 426.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.2336, allocations: 0 / 426.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001701/0.2338, allocations: 245.4 kB / 426.9 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.2338, allocations: 4 kB / 426.9 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.797e-05/0.2338, allocations: 4 kB / 426.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.2338, allocations: 0 / 426.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.2338, allocations: 0 / 426.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.2338, allocations: 7.938 kB / 427 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.2338, allocations: 0 / 427 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002152/0.2341, allocations: 225.6 kB / 427.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.561e-05/0.2341, allocations: 96.8 kB / 427.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.2341, allocations: 7.984 kB / 427.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.615e-05/0.2342, allocations: 0 / 427.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.015e-05/0.2342, allocations: 15.98 kB / 427.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.2342, allocations: 4 kB / 427.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.695e-05/0.2343, allocations: 114.3 kB / 427.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2343, allocations: 0 / 427.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002789/0.2346, allocations: 39.84 kB / 427.4 MB, free: 12.32 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: 17 ($whenCondition1,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: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 1 * 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.0004773/0.2351, allocations: 219.5 kB / 427.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003182/0.2354, allocations: 221.4 kB / 427.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.2354, allocations: 0 / 427.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.259e-05/0.2355, allocations: 101.7 kB / 428 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001772/0.2357, allocations: 8 kB / 428 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006216/0.2363, allocations: 454.5 kB / 428.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001778/0.2365, allocations: 0.7361 MB / 429.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.926e-05/0.2366, allocations: 15.44 kB / 429.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2366, allocations: 0 / 429.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of Templates: time 0.004069/0.2406, allocations: 2.285 MB / 431.5 MB, free: 8.273 MB / 302.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1)