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.0009333/0.0009334, allocations: 105.9 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.0009568/0.0009568, allocations: 191.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.21/1.21, allocations: 222.9 MB / 240.9 MB, free: 15.18 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.05262/0.05262, allocations: 12.04 MB / 303.1 MB, free: 3.18 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 59.89 kB / 366.5 MB, free: 3.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1925, allocations: 52.33 MB / 418.8 MB, free: 21.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003623/0.1962, allocations: 2.222 MB / 421 MB, free: 19.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002204/0.1965, allocations: 127.6 kB / 421.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.839e-05/0.1965, allocations: 4 kB / 421.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.1967, allocations: 23.78 kB / 421.2 MB, free: 18.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.858e-05/0.1968, allocations: 13.09 kB / 421.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001769/0.1969, allocations: 35.89 kB / 421.2 MB, free: 18.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000122/0.1971, allocations: 83.78 kB / 421.3 MB, free: 18.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.1972, allocations: 23.78 kB / 421.3 MB, free: 18.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.554e-05/0.1972, allocations: 35.84 kB / 421.4 MB, free: 18.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.138e-05/0.1973, allocations: 31.84 kB / 421.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.1973, allocations: 8 kB / 421.4 MB, free: 18.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.708e-05/0.1974, allocations: 24 kB / 421.4 MB, free: 18.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.726e-05/0.1974, allocations: 19.92 kB / 421.4 MB, free: 18.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.982e-05/0.1975, allocations: 43.72 kB / 421.5 MB, free: 18.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001467/0.1976, allocations: 111.6 kB / 421.6 MB, free: 18.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.706e-06/0.1976, allocations: 4 kB / 421.6 MB, free: 18.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1976, allocations: 1.438 kB / 421.6 MB, free: 18.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.1977, allocations: 0 / 421.6 MB, free: 18.45 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.0003507/0.198, allocations: 444.8 kB / 422 MB, free: 17.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.1981, allocations: 8.031 kB / 422 MB, free: 17.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.197e-05/0.1981, allocations: 16.75 kB / 422.1 MB, free: 17.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.1983, allocations: 204.1 kB / 422.3 MB, free: 17.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.1983, allocations: 4.375 kB / 422.3 MB, free: 17.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.265e-05/0.1983, allocations: 8.375 kB / 422.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003174/0.1986, allocations: 275.8 kB / 422.5 MB, free: 17.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.1986, allocations: 3.984 kB / 422.5 MB, free: 17.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.1987, allocations: 0 / 422.5 MB, free: 17.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.1987, allocations: 8 kB / 422.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.579e-05/0.1988, allocations: 67.91 kB / 422.6 MB, free: 17.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000258/0.199, allocations: 297.6 kB / 422.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001302/0.1992, allocations: 125.4 kB / 423 MB, free: 16.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.258e-05/0.1993, allocations: 75.95 kB / 423.1 MB, free: 16.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.264e-06/0.1993, allocations: 4 kB / 423.1 MB, free: 16.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/0.1993, allocations: 42.48 kB / 423.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.233e-06/0.1993, allocations: 0 / 423.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.000309/0.1996, allocations: 252.8 kB / 423.4 MB, free: 16.44 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.1997, allocations: 136.5 kB / 423.5 MB, free: 16.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.254e-05/0.1997, allocations: 125.6 kB / 423.7 MB, free: 16.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.1998, allocations: 33.7 kB / 423.7 MB, free: 16.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.28e-05/0.1998, allocations: 96.52 kB / 423.8 MB, free: 16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.58e-05/0.1998, allocations: 23.73 kB / 423.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.257e-05/0.1999, allocations: 41.7 kB / 423.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.236e-05/0.1999, allocations: 322.8 kB / 424.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.01e-05/0.2, allocations: 31.97 kB / 424.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.552e-05/0.2, allocations: 157.1 kB / 424.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.2002, allocations: 307.7 kB / 424.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2002, allocations: 0 / 424.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002307/0.2004, allocations: 253 kB / 424.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.2005, allocations: 63.39 kB / 425 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2005, allocations: 4 kB / 425 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.2005, allocations: 8 kB / 425 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.805e-05/0.2006, allocations: 31.88 kB / 425 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.2006, allocations: 11.92 kB / 425 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.056e-05/0.2007, allocations: 11.91 kB / 425 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.2007, allocations: 16 kB / 425 MB, free: 14.55 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.0001138/0.2008, allocations: 199.5 kB / 425.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.2009, allocations: 124 kB / 425.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.362e-05/0.201, allocations: 16.83 kB / 425.4 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.201, allocations: 11.94 kB / 425.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.201, allocations: 4 kB / 425.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.201, allocations: 7.922 kB / 425.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.2011, allocations: 189.5 kB / 425.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2011, allocations: 0 / 425.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.818e-06/0.2011, allocations: 3.938 kB / 425.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.2011, allocations: 4 kB / 425.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.2012, allocations: 4 kB / 425.6 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2012, allocations: 3.938 kB / 425.6 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2012, allocations: 4 kB / 425.6 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002063/0.2014, allocations: 321.5 kB / 425.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.987e-05/0.2014, allocations: 88.95 kB / 426 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.2014, allocations: 7.938 kB / 426 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.015e-05/0.2015, allocations: 0 / 426 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.324e-05/0.2015, allocations: 12 kB / 426 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.2015, allocations: 4.188 kB / 426 MB, free: 13.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.852e-05/0.2016, allocations: 91.27 kB / 426.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.81e-07/0.2016, allocations: 3.938 kB / 426.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002756/0.2018, allocations: 27.94 kB / 426.1 MB, free: 13.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: 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.0004287/0.2023, allocations: 264.9 kB / 426.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002333/0.2025, allocations: 254.5 kB / 426.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2025, allocations: 0 / 426.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.623e-05/0.2026, allocations: 128 kB / 426.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.2029, allocations: 79.94 kB / 426.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003203/0.2032, allocations: 246.9 kB / 427.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/0.2033, allocations: 0.7194 MB / 427.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.047e-05/0.2034, allocations: 16.86 kB / 427.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.627e-05/0.2034, allocations: 15.44 kB / 427.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2034, allocations: 0 / 427.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of Templates: time 0.003451/0.2069, allocations: 1.505 MB / 429.3 MB, free: 10.07 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)