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.001055/0.001055, allocations: 107.1 kB / 16.57 MB, free: 6.73 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.001114/0.001114, allocations: 193.9 kB / 17.48 MB, free: 6.027 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.31/1.31, allocations: 222.9 MB / 241.2 MB, free: 15.49 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.05316/0.05316, allocations: 12.04 MB / 303.3 MB, free: 3.43 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 59.91 kB / 366.4 MB, free: 4.305 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1917/0.1929, allocations: 52.33 MB / 418.8 MB, free: 21.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.002812/0.1958, allocations: 2.268 MB / 421 MB, free: 19.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001973/0.196, allocations: 139.6 kB / 421.2 MB, free: 18.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.231e-05/0.196, allocations: 0 / 421.2 MB, free: 18.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.1962, allocations: 25 kB / 421.2 MB, free: 18.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.472e-05/0.1962, allocations: 0 / 421.2 MB, free: 18.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001621/0.1964, allocations: 47.88 kB / 421.2 MB, free: 18.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.155e-05/0.1965, allocations: 71.41 kB / 421.3 MB, free: 18.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.534e-05/0.1966, allocations: 20.22 kB / 421.3 MB, free: 18.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.006e-05/0.1966, allocations: 31.86 kB / 421.3 MB, free: 18.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.095e-05/0.1967, allocations: 27.84 kB / 421.4 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.03e-05/0.1967, allocations: 4 kB / 421.4 MB, free: 18.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.185e-05/0.1968, allocations: 23.98 kB / 421.4 MB, free: 18.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.031e-05/0.1968, allocations: 19.92 kB / 421.4 MB, free: 18.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.144e-05/0.1969, allocations: 35.73 kB / 421.5 MB, free: 18.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.912e-05/0.197, allocations: 75.83 kB / 421.5 MB, free: 18.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.197, allocations: 1.469 kB / 421.5 MB, free: 18.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.197, allocations: 0 / 421.5 MB, free: 18.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.311e-06/0.197, allocations: 0 / 421.5 MB, free: 18.54 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.000324/0.1973, allocations: 458.9 kB / 422 MB, free: 18.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.817e-05/0.1974, allocations: 8.031 kB / 422 MB, free: 18.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.74e-05/0.1974, allocations: 16.69 kB / 422 MB, free: 18.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.1976, allocations: 200.1 kB / 422.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.594e-06/0.1976, allocations: 4.375 kB / 422.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.66e-05/0.1976, allocations: 8.375 kB / 422.2 MB, free: 17.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003102/0.1979, allocations: 268.3 kB / 422.5 MB, free: 17.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.1979, allocations: 0 / 422.5 MB, free: 17.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.1979, allocations: 4 kB / 422.5 MB, free: 17.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/0.198, allocations: 11.98 kB / 422.5 MB, free: 17.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.64e-05/0.1981, allocations: 63.84 kB / 422.6 MB, free: 17.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002507/0.1983, allocations: 305.6 kB / 422.8 MB, free: 17.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.1985, allocations: 132.2 kB / 423 MB, free: 16.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.352e-05/0.1985, allocations: 73.77 kB / 423.1 MB, free: 16.83 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.1986, allocations: 4 kB / 423.1 MB, free: 16.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.294e-05/0.1986, allocations: 38.55 kB / 423.1 MB, free: 16.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.282e-06/0.1986, allocations: 0 / 423.1 MB, free: 16.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.000317/0.1989, allocations: 252.8 kB / 423.3 MB, free: 16.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.1989, allocations: 143 kB / 423.5 MB, free: 16.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.279e-05/0.199, allocations: 121.8 kB / 423.6 MB, free: 16.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.227e-06/0.199, allocations: 25.7 kB / 423.6 MB, free: 16.19 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.135e-05/0.1991, allocations: 100.5 kB / 423.7 MB, free: 16.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.629e-05/0.1991, allocations: 23.73 kB / 423.7 MB, free: 16.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.395e-05/0.1991, allocations: 41.7 kB / 423.8 MB, free: 16.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.845e-05/0.1992, allocations: 322.8 kB / 424.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.227e-05/0.1992, allocations: 35.91 kB / 424.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.467e-05/0.1993, allocations: 147 kB / 424.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.1995, allocations: 307.7 kB / 424.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1995, allocations: 4 kB / 424.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002397/0.1997, allocations: 253 kB / 424.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.1998, allocations: 63.39 kB / 424.9 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1998, allocations: 4 kB / 424.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.1998, allocations: 8 kB / 424.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.955e-05/0.1999, allocations: 27.88 kB / 424.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.1999, allocations: 15.92 kB / 424.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.417e-05/0.2, allocations: 15.91 kB / 425 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.2, allocations: 8 kB / 425 MB, free: 14.64 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.0001163/0.2001, allocations: 207.5 kB / 425.2 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.2002, allocations: 117.5 kB / 425.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.301e-05/0.2003, allocations: 12.84 kB / 425.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.2003, allocations: 7.938 kB / 425.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2003, allocations: 12.06 kB / 425.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2003, allocations: 3.984 kB / 425.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.2004, allocations: 185.5 kB / 425.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.2004, allocations: 0 / 425.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.182e-05/0.2004, allocations: 11.94 kB / 425.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2004, allocations: 4 kB / 425.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.2005, allocations: 4 kB / 425.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.2005, allocations: 4.125 kB / 425.5 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2005, allocations: 0 / 425.5 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002103/0.2007, allocations: 327.5 kB / 425.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.93e-05/0.2007, allocations: 88.89 kB / 425.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.2007, allocations: 8 kB / 425.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.356e-05/0.2008, allocations: 8 kB / 425.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.663e-05/0.2008, allocations: 0 / 425.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.2008, allocations: 8 kB / 426 MB, free: 13.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.986e-05/0.2009, allocations: 99.69 kB / 426.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2009, allocations: 0 / 426.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002832/0.2012, allocations: 32 kB / 426.1 MB, free: 13.39 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.0004181/0.2016, allocations: 262 kB / 426.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002127/0.2018, allocations: 242.5 kB / 426.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2018, allocations: 0 / 426.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.502e-05/0.2019, allocations: 120.1 kB / 426.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.2022, allocations: 83.92 kB / 426.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003913/0.2026, allocations: 319 kB / 427.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001054/0.2027, allocations: 0.7122 MB / 427.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.614e-05/0.2027, allocations: 15.44 kB / 427.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2027, allocations: 0 / 427.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of Templates: time 0.002475/0.2052, allocations: 1.738 MB / 429.6 MB, free: 9.879 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)