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.001292/0.001293, allocations: 108.2 kB / 17.08 MB, free: 5.773 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.001081/0.001082, allocations: 195 kB / 18.03 MB, free: 4.953 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.311/1.311, 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.05711/0.05711, allocations: 12.05 MB / 303.9 MB, free: 3.121 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 71.89 kB / 367.9 MB, free: 3.059 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2018/0.203, allocations: 52.32 MB / 420.2 MB, free: 20.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003157/0.2062, allocations: 2.634 MB / 422.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003777/0.2066, allocations: 314.9 kB / 423.2 MB, free: 18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.769e-05/0.2067, allocations: 7.938 kB / 423.2 MB, free: 17.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001919/0.2069, allocations: 46.62 kB / 423.2 MB, free: 17.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.142e-05/0.207, allocations: 15.81 kB / 423.3 MB, free: 17.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001978/0.2072, allocations: 91.7 kB / 423.3 MB, free: 17.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001445/0.2073, allocations: 148.1 kB / 423.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.2075, allocations: 71.7 kB / 423.6 MB, free: 17.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.969e-05/0.2075, allocations: 71.53 kB / 423.6 MB, free: 17.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.246e-05/0.2076, allocations: 63.64 kB / 423.7 MB, free: 17.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.2077, allocations: 12 kB / 423.7 MB, free: 17.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.873e-05/0.2077, allocations: 24 kB / 423.7 MB, free: 17.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.511e-05/0.2078, allocations: 55.84 kB / 423.8 MB, free: 17.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.55e-05/0.2078, allocations: 75.53 kB / 423.9 MB, free: 17.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.208, allocations: 204.8 kB / 424.1 MB, free: 17.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.208, allocations: 0 / 424.1 MB, free: 17.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.208, allocations: 0 / 424.1 MB, free: 17.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.208, allocations: 0 / 424.1 MB, free: 17.14 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.0004352/0.2085, allocations: 474.8 kB / 424.5 MB, free: 16.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.2085, allocations: 8.031 kB / 424.5 MB, free: 16.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.442e-05/0.2086, allocations: 20.66 kB / 424.6 MB, free: 16.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001885/0.2088, allocations: 224.1 kB / 424.8 MB, free: 16.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.936e-06/0.2088, allocations: 8.375 kB / 424.8 MB, free: 16.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.159e-05/0.2088, allocations: 12.38 kB / 424.8 MB, free: 16.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.209, allocations: 187.8 kB / 425 MB, free: 16.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-06/0.2091, allocations: 192 / 425 MB, free: 16.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.2091, allocations: 15.94 kB / 425 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.2091, allocations: 4 kB / 425 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001474/0.2092, allocations: 120.1 kB / 425.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000507/0.2098, allocations: 477.4 kB / 425.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.2099, allocations: 125.2 kB / 425.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.246e-05/0.21, allocations: 84.58 kB / 425.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.21, allocations: 4 kB / 425.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001495/0.2102, allocations: 124.7 kB / 425.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.343e-06/0.2102, allocations: 0 / 425.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0002947/0.2105, allocations: 245.4 kB / 426.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.2105, allocations: 97.17 kB / 426.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.162e-05/0.2106, allocations: 151.8 kB / 426.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.2106, allocations: 33.7 kB / 426.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.257e-05/0.2107, allocations: 128.6 kB / 426.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.047e-05/0.2107, allocations: 51.3 kB / 426.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.742e-05/0.2108, allocations: 57.98 kB / 426.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.402e-05/0.2108, allocations: 334.8 kB / 427 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.931e-05/0.2109, allocations: 76.23 kB / 427.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.2111, allocations: 171.5 kB / 427.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002028/0.2113, allocations: 247 kB / 427.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.2113, allocations: 0 / 427.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002977/0.2116, allocations: 281.2 kB / 427.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.2116, allocations: 8 kB / 427.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.2116, allocations: 4 kB / 427.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.2116, allocations: 4 kB / 427.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.2117, allocations: 31.92 kB / 427.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.2118, allocations: 11.94 kB / 427.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.001e-05/0.2118, allocations: 19.75 kB / 427.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.2118, allocations: 12 kB / 427.8 MB, free: 13.02 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.000105/0.212, allocations: 178.8 kB / 428 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.948e-05/0.212, allocations: 15.75 kB / 428 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.326e-05/0.212, allocations: 21.16 kB / 428 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.212, allocations: 4 kB / 428 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.212, allocations: 0 / 428 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.2121, allocations: 0 / 428 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001405/0.2122, allocations: 241.4 kB / 428.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.2122, allocations: 4 kB / 428.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.467e-05/0.2122, allocations: 4 kB / 428.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.2123, allocations: 7.938 kB / 428.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.2123, allocations: 4 kB / 428.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2123, allocations: 256 / 428.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2123, allocations: 4 kB / 428.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001911/0.2125, allocations: 225.6 kB / 428.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.311e-05/0.2125, allocations: 96.86 kB / 428.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.2125, allocations: 8 kB / 428.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.76e-05/0.2126, allocations: 0 / 428.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/0.2126, allocations: 7.984 kB / 428.6 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.2126, allocations: 7.984 kB / 428.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.479e-05/0.2127, allocations: 112.9 kB / 428.8 MB, free: 12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2127, allocations: 0 / 428.8 MB, free: 12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002525/0.2129, allocations: 47.84 kB / 428.8 MB, free: 11.96 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.0003501/0.2133, allocations: 211.5 kB / 429 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002459/0.2135, allocations: 213.8 kB / 429.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2136, allocations: 0 / 429.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.878e-05/0.2136, allocations: 98 kB / 429.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001531/0.2138, allocations: 14.53 kB / 429.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004109/0.2142, allocations: 348.5 kB / 429.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001285/0.2144, allocations: 0.74 MB / 430.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.823e-05/0.2144, allocations: 25.69 kB / 430.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.515e-05/0.2144, allocations: 15.44 kB / 430.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2145, allocations: 0 / 430.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of Templates: time 0.003355/0.2178, allocations: 1.314 MB / 431.8 MB, free: 8.973 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 -s cvode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1)