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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001233/0.001234, allocations: 180.9 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.242/1.242, allocations: 221.5 MB / 230 MB, free: 7.594 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008393/0.0008393, allocations: 99.61 kB / 280.9 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.04734/0.04734, allocations: 11.92 MB / 343.6 MB, free: 3.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.18e-05/2.182e-05, allocations: 4.281 kB / 403.1 MB, free: 45.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09046/0.0905, allocations: 53.35 MB / 456.5 MB, free: 14.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3202/0.4107, allocations: 81.31 MB / 0.5252 GB, free: 16.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/0.411, allocations: 73.64 kB / 0.5253 GB, free: 16.89 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005517/0.4165, allocations: 2.412 MB / 0.5276 GB, free: 16.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4165, allocations: 0 / 0.5276 GB, free: 16.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.4166, allocations: 3.938 kB / 0.5276 GB, free: 16.45 MB / 362.7 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.0003411/0.4169, allocations: 428.3 kB / 0.528 GB, free: 16.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.4169, allocations: 8.75 kB / 0.528 GB, free: 16.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.547e-05/0.417, allocations: 17.02 kB / 0.5281 GB, free: 16.06 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.4172, allocations: 240.1 kB / 0.5283 GB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.4172, allocations: 8.328 kB / 0.5283 GB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.195e-05/0.4173, allocations: 7.156 kB / 0.5283 GB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00019/0.4175, allocations: 108.7 kB / 0.5284 GB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002255/0.4177, allocations: 168.5 kB / 0.5286 GB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.4177, allocations: 7.844 kB / 0.5286 GB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.4177, allocations: 0.6562 kB / 0.5286 GB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.4177, allocations: 3.188 kB / 0.5286 GB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005292/0.4183, allocations: 443 kB / 0.529 GB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001272/0.4184, allocations: 106.7 kB / 0.5291 GB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.341e-05/0.4185, allocations: 75.28 kB / 0.5292 GB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.4185, allocations: 13.59 kB / 0.5292 GB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001475/0.4187, allocations: 117.5 kB / 0.5293 GB, free: 15.35 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.332e-06/0.4187, allocations: 0 / 0.5293 GB, free: 15.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002723/0.419, allocations: 179.3 kB / 0.5295 GB, free: 15.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.419, allocations: 87.48 kB / 0.5296 GB, free: 15.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.4192, allocations: 130.1 kB / 0.5297 GB, free: 15.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.4192, allocations: 34.34 kB / 0.5297 GB, free: 15.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.121e-05/0.4192, allocations: 126.5 kB / 0.5298 GB, free: 14.99 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.923e-05/0.4193, allocations: 59.67 kB / 0.5299 GB, free: 14.96 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.727e-06/0.4193, allocations: 0 / 0.5299 GB, free: 14.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.893e-05/0.4194, allocations: 329.9 kB / 0.5302 GB, free: 14.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.54e-05/0.4194, allocations: 65.23 kB / 0.5303 GB, free: 14.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.4196, allocations: 155.8 kB / 0.5304 GB, free: 14.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/0.4197, allocations: 97.02 kB / 0.5305 GB, free: 14.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4197, allocations: 0 / 0.5305 GB, free: 14.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003001/0.42, allocations: 249 kB / 0.5307 GB, free: 14.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.42, allocations: 6.594 kB / 0.5307 GB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.42, allocations: 5.078 kB / 0.5308 GB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.4201, allocations: 4.594 kB / 0.5308 GB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.4202, allocations: 29.88 kB / 0.5308 GB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.4202, allocations: 5.266 kB / 0.5308 GB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.122e-05/0.4203, allocations: 25.25 kB / 0.5308 GB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.896e-05/0.4203, allocations: 14 kB / 0.5308 GB, free: 14.43 MB / 362.7 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 ($PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[7],keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.keySpace,$PRE.keyboardInput.KeyCode[6],keyboardInput.KeyCode[6],keyboardInput.keyReturn,$PRE.keyboardInput.KeyCode[5],keyboardInput.KeyCode[5],keyboardInput.keyLeft,$PRE.keyboardInput.KeyCode[4],keyboardInput.KeyCode[4],keyboardInput.keyRight,$PRE.keyboardInput.KeyCode[3],keyboardInput.KeyCode[3],keyboardInput.keyDown,$PRE.keyboardInput.KeyCode[2],keyboardInput.KeyCode[2],keyboardInput.keyUp,$PRE.keyboardInput.KeyCode[1],keyboardInput.KeyCode[1]) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.651e-05/0.4204, allocations: 129.6 kB / 0.531 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.949e-05/0.4204, allocations: 15.23 kB / 0.531 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.14e-05/0.4205, allocations: 13.25 kB / 0.531 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.4205, allocations: 1.719 kB / 0.531 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.4205, allocations: 5.094 kB / 0.531 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.4205, allocations: 10 kB / 0.531 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001631/0.4207, allocations: 196.7 kB / 0.5312 GB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.4207, allocations: 1.062 kB / 0.5312 GB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.883e-05/0.4207, allocations: 13.88 kB / 0.5312 GB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.4207, allocations: 1.125 kB / 0.5312 GB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.288e-06/0.4207, allocations: 5.641 kB / 0.5312 GB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.4207, allocations: 1.219 kB / 0.5312 GB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4208, allocations: 1.922 kB / 0.5312 GB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002203/0.421, allocations: 234 kB / 0.5314 GB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.675e-05/0.421, allocations: 92.81 kB / 0.5315 GB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.421, allocations: 1.969 kB / 0.5315 GB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.783e-05/0.4211, allocations: 0.7031 kB / 0.5315 GB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.484e-05/0.4211, allocations: 14.97 kB / 0.5315 GB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.4211, allocations: 2.609 kB / 0.5315 GB, free: 13.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.447e-05/0.4212, allocations: 111.2 kB / 0.5316 GB, free: 13.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4212, allocations: 4 kB / 0.5316 GB, free: 13.83 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000262/0.4214, allocations: 43.89 kB / 0.5317 GB, free: 13.82 MB / 362.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004045/0.4219, allocations: 196.3 kB / 0.5319 GB, free: 13.69 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002685/0.4221, allocations: 190.9 kB / 0.5321 GB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.4221, allocations: 0 / 0.5321 GB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.158e-05/0.4222, allocations: 108.1 kB / 0.5322 GB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001101/0.4224, allocations: 7.375 kB / 0.5322 GB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004017/0.4228, allocations: 239.8 kB / 0.5324 GB, free: 13.49 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006974/0.4235, allocations: 0.7456 MB / 0.5331 GB, free: 28.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.308e-05/0.4236, allocations: 25.44 kB / 0.5332 GB, free: 28.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.736e-05/0.4236, allocations: 15.03 kB / 0.5332 GB, free: 28.78 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4236, allocations: 5.219 kB / 0.5332 GB, free: 28.78 MB / 378.7 MB Notification: Performance of Templates: time 0.003557/0.4272, allocations: 1.215 MB / 0.5344 GB, free: 28.63 MB / 378.7 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 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1)