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.001228/0.001228, allocations: 103.5 kB / 17.07 MB, free: 5.68 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.0012/0.0012, allocations: 196 kB / 18.01 MB, free: 5.02 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.204/1.204, allocations: 222.9 MB / 241.7 MB, free: 15.16 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.05479/0.05479, allocations: 12.05 MB / 303.9 MB, free: 3.125 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 59.91 kB / 367.9 MB, free: 3.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.191, allocations: 52.33 MB / 420.2 MB, free: 20.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.003135/0.1942, allocations: 2.246 MB / 422.5 MB, free: 18.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002581/0.1945, allocations: 163.5 kB / 422.6 MB, free: 18.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.798e-05/0.1946, allocations: 7.938 kB / 422.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001393/0.1947, allocations: 15.88 kB / 422.7 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.1949, allocations: 47.77 kB / 422.7 MB, free: 18.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001497/0.195, allocations: 43.89 kB / 422.8 MB, free: 18.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001193/0.1952, allocations: 87.77 kB / 422.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.579e-05/0.1953, allocations: 16.23 kB / 422.9 MB, free: 18.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.103e-05/0.1953, allocations: 43.77 kB / 422.9 MB, free: 18.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.821e-05/0.1954, allocations: 27.86 kB / 422.9 MB, free: 18.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.734e-05/0.1954, allocations: 8 kB / 422.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.1955, allocations: 127.9 kB / 423.1 MB, free: 18.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.051e-05/0.1955, allocations: 19.91 kB / 423.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.049e-05/0.1956, allocations: 35.69 kB / 423.1 MB, free: 18.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001913/0.1958, allocations: 139.6 kB / 423.3 MB, free: 17.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.1958, allocations: 0 / 423.3 MB, free: 17.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1958, allocations: 0 / 423.3 MB, free: 17.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1958, allocations: 4 kB / 423.3 MB, free: 17.92 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.0003479/0.1962, allocations: 444.3 kB / 423.7 MB, free: 17.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.934e-05/0.1962, allocations: 8.031 kB / 423.7 MB, free: 17.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.988e-05/0.1962, allocations: 12.75 kB / 423.7 MB, free: 17.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.1964, allocations: 204.1 kB / 423.9 MB, free: 17.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/0.1965, allocations: 5.281 kB / 423.9 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.1965, allocations: 8.375 kB / 423.9 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002473/0.1967, allocations: 152.4 kB / 424.1 MB, free: 16.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.1967, allocations: 4.125 kB / 424.1 MB, free: 16.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.1968, allocations: 3.938 kB / 424.1 MB, free: 16.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1968, allocations: 4 kB / 424.1 MB, free: 16.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.712e-05/0.1968, allocations: 23.98 kB / 424.1 MB, free: 16.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002767/0.1971, allocations: 301.6 kB / 424.4 MB, free: 16.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.1973, allocations: 154.2 kB / 424.6 MB, free: 16.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.541e-05/0.1973, allocations: 41.78 kB / 424.6 MB, free: 16.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.813e-05/0.1974, allocations: 4 kB / 424.6 MB, free: 16.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.732e-05/0.1974, allocations: 34.56 kB / 424.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.734e-06/0.1974, allocations: 0 / 424.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.000268/0.1977, allocations: 160.9 kB / 424.8 MB, free: 16.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.1977, allocations: 140.5 kB / 424.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.768e-05/0.1978, allocations: 134 kB / 425.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.022e-05/0.1978, allocations: 29.7 kB / 425.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.41e-05/0.1979, allocations: 100.1 kB / 425.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.083e-05/0.1979, allocations: 11.84 kB / 425.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.485e-05/0.1979, allocations: 29.64 kB / 425.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.596e-05/0.198, allocations: 318.8 kB / 425.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.405e-05/0.198, allocations: 16.23 kB / 425.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.888e-05/0.198, allocations: 58.02 kB / 425.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.534e-05/0.1981, allocations: 184.6 kB / 425.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1981, allocations: 4 kB / 425.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001457/0.1983, allocations: 156.9 kB / 425.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.1983, allocations: 59.41 kB / 426 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1983, allocations: 0 / 426 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.1983, allocations: 4 kB / 426 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.036e-05/0.1984, allocations: 7.984 kB / 426 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.022e-06/0.1984, allocations: 7.938 kB / 426 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.797e-05/0.1984, allocations: 4 kB / 426 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.1985, allocations: 8.219 kB / 426 MB, free: 14.74 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.926e-05/0.1985, allocations: 177.2 kB / 426.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.674e-05/0.1986, allocations: 61.59 kB / 426.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.289e-05/0.1987, allocations: 12.31 kB / 426.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.1987, allocations: 3.984 kB / 426.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1987, allocations: 3.938 kB / 426.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1987, allocations: 0 / 426.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001273/0.1988, allocations: 197.4 kB / 426.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1988, allocations: 4 kB / 426.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.145e-05/0.1989, allocations: 4 kB / 426.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1989, allocations: 4 kB / 426.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.1989, allocations: 0 / 426.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1989, allocations: 4 kB / 426.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1989, allocations: 0 / 426.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001758/0.1991, allocations: 255.6 kB / 426.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.84e-05/0.1991, allocations: 85.05 kB / 426.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.1991, allocations: 0 / 426.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.167e-05/0.1992, allocations: 11.94 kB / 426.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.284e-05/0.1992, allocations: 8.125 kB / 426.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.1992, allocations: 7.984 kB / 426.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.888e-05/0.1993, allocations: 101.9 kB / 427 MB, free: 13.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1993, allocations: 4 kB / 427 MB, free: 13.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002615/0.1995, allocations: 27.91 kB / 427 MB, free: 13.66 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.0005171/0.2001, allocations: 302.4 kB / 427.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001754/0.2003, allocations: 166.7 kB / 427.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2003, allocations: 0 / 427.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.646e-05/0.2003, allocations: 126.8 kB / 427.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.2006, allocations: 30.16 kB / 427.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000305/0.2009, allocations: 191.3 kB / 427.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.201, allocations: 0.6969 MB / 428.5 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.808e-05/0.2011, allocations: 16.59 kB / 428.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.866e-05/0.2011, allocations: 15.44 kB / 428.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2011, allocations: 0 / 428.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of Templates: time 0.003773/0.2049, allocations: 1.632 MB / 430.1 MB, free: 10.48 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 -s gbode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1)