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.001115/0.001115, allocations: 103.6 kB / 16.68 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.001025/0.001025, allocations: 190 kB / 17.61 MB, free: 5.719 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.327/1.327, allocations: 222.9 MB / 241.3 MB, free: 15.45 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.05506/0.05506, allocations: 12.03 MB / 303.5 MB, free: 3.391 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 59.91 kB / 366.6 MB, free: 4.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1946, allocations: 52.33 MB / 418.9 MB, free: 21.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.00293/0.1975, allocations: 2.278 MB / 421.2 MB, free: 19.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002249/0.1978, allocations: 123.6 kB / 421.3 MB, free: 18.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.882e-05/0.1979, allocations: 3.938 kB / 421.3 MB, free: 18.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.1981, allocations: 15.91 kB / 421.4 MB, free: 18.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.464e-05/0.1981, allocations: 3.938 kB / 421.4 MB, free: 18.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001764/0.1983, allocations: 47.08 kB / 421.4 MB, free: 18.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001218/0.1985, allocations: 75.78 kB / 421.5 MB, free: 18.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.1986, allocations: 36.2 kB / 421.5 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.481e-05/0.1986, allocations: 35.84 kB / 421.5 MB, free: 18.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.981e-05/0.1987, allocations: 27.86 kB / 421.6 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.176e-05/0.1987, allocations: 8 kB / 421.6 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.435e-05/0.1987, allocations: 27.98 kB / 421.6 MB, free: 18.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.781e-05/0.1988, allocations: 31.78 kB / 421.6 MB, free: 18.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.748e-05/0.1989, allocations: 35.75 kB / 421.7 MB, free: 18.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001195/0.199, allocations: 83.81 kB / 421.8 MB, free: 18.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.199, allocations: 0 / 421.8 MB, free: 18.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.199, allocations: 0 / 421.8 MB, free: 18.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.199, allocations: 4 kB / 421.8 MB, free: 18.46 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.0003419/0.1994, allocations: 444.7 kB / 422.2 MB, free: 17.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.1994, allocations: 8.031 kB / 422.2 MB, free: 17.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.344e-05/0.1994, allocations: 24.67 kB / 422.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.1996, allocations: 188.2 kB / 422.4 MB, free: 17.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.1996, allocations: 8.375 kB / 422.4 MB, free: 17.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.1996, allocations: 8.375 kB / 422.4 MB, free: 17.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000348/0.2, allocations: 270.7 kB / 422.7 MB, free: 17.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.2, allocations: 0 / 422.7 MB, free: 17.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.2, allocations: 4 kB / 422.7 MB, free: 17.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/0.2, allocations: 11.98 kB / 422.7 MB, free: 17.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.192e-05/0.2001, allocations: 59.97 kB / 422.8 MB, free: 17.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002833/0.2004, allocations: 297.6 kB / 423.1 MB, free: 17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001411/0.2006, allocations: 133.4 kB / 423.2 MB, free: 16.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.424e-05/0.2007, allocations: 73.77 kB / 423.3 MB, free: 16.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.21e-05/0.2007, allocations: 0 / 423.3 MB, free: 16.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.858e-05/0.2007, allocations: 34.56 kB / 423.3 MB, free: 16.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.313e-06/0.2007, allocations: 3.938 kB / 423.3 MB, free: 16.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003229/0.201, allocations: 260.8 kB / 423.6 MB, free: 16.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/0.2011, allocations: 140.4 kB / 423.7 MB, free: 16.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.867e-05/0.2012, allocations: 129.7 kB / 423.8 MB, free: 16.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.2012, allocations: 29.7 kB / 423.8 MB, free: 16.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.108e-05/0.2012, allocations: 92.5 kB / 423.9 MB, free: 16.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.664e-05/0.2012, allocations: 19.75 kB / 424 MB, free: 15.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-05/0.2013, allocations: 41.7 kB / 424 MB, free: 15.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.025e-05/0.2013, allocations: 330.8 kB / 424.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.018e-05/0.2014, allocations: 27.98 kB / 424.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.892e-05/0.2015, allocations: 151.2 kB / 424.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001588/0.2017, allocations: 307.7 kB / 424.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2017, allocations: 0 / 424.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002486/0.2019, allocations: 252.8 kB / 425 MB, free: 14.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.202, allocations: 65.75 kB / 425.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.202, allocations: 4 kB / 425.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.202, allocations: 11.94 kB / 425.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.805e-05/0.2021, allocations: 28.02 kB / 425.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.2021, allocations: 11.88 kB / 425.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.886e-05/0.2022, allocations: 19.89 kB / 425.2 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.2022, allocations: 12.38 kB / 425.2 MB, free: 14.57 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.0001405/0.2024, allocations: 203.4 kB / 425.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.2025, allocations: 121.5 kB / 425.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.445e-05/0.2025, allocations: 16.72 kB / 425.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.2025, allocations: 11.94 kB / 425.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2025, allocations: 0 / 425.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.2025, allocations: 0 / 425.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.2027, allocations: 189.5 kB / 425.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.2027, allocations: 3.984 kB / 425.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.189e-05/0.2027, allocations: 8 kB / 425.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.2027, allocations: 4 kB / 425.7 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.2027, allocations: 4 kB / 425.7 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2027, allocations: 3.938 kB / 425.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2027, allocations: 4 kB / 425.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002115/0.2029, allocations: 315.6 kB / 426.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.146e-05/0.203, allocations: 96.88 kB / 426.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.983e-05/0.203, allocations: 4.141 kB / 426.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.396e-05/0.2031, allocations: 8 kB / 426.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.275e-05/0.2031, allocations: 7.984 kB / 426.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.2031, allocations: 4 kB / 426.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.134e-05/0.2031, allocations: 91.27 kB / 426.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2032, allocations: 0 / 426.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.2034, allocations: 28 kB / 426.3 MB, free: 13.34 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.0004205/0.2039, allocations: 267.7 kB / 426.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002364/0.2041, allocations: 258.4 kB / 426.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2041, allocations: 1.25 kB / 426.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.611e-05/0.2042, allocations: 118.8 kB / 426.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.2045, allocations: 80.06 kB / 427 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004011/0.2049, allocations: 321.3 kB / 427.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001076/0.205, allocations: 0.708 MB / 428 MB, free: 11.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.85e-05/0.2051, allocations: 11.44 kB / 428 MB, free: 11.55 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2051, allocations: 4 kB / 428 MB, free: 11.54 MB / 302.1 MB Notification: Performance of Templates: time 0.002777/0.2079, allocations: 1.751 MB / 429.8 MB, free: 9.793 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)