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.0009652/0.0009653, allocations: 181.9 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 221.4 MB / 235.1 MB, free: 14.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008049/0.0008049, allocations: 92.53 kB / 286.1 MB, free: 12.98 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.05048/0.05048, allocations: 11.9 MB / 348.9 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.289e-05/2.291e-05, allocations: 0 / 410.1 MB, free: 58.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08449/0.08452, allocations: 53.35 MB / 463.5 MB, free: 4.902 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3189/0.4034, allocations: 81.98 MB / 0.5327 GB, free: 1.305 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001714/0.4036, allocations: 73.03 kB / 0.5327 GB, free: 1.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005588/0.4092, allocations: 2.429 MB / 0.5351 GB, free: 15.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.4093, allocations: 0 / 0.5351 GB, free: 15.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.4093, allocations: 4 kB / 0.5351 GB, free: 15.17 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.0003697/0.4096, allocations: 430.2 kB / 0.5355 GB, free: 14.72 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.4097, allocations: 12.03 kB / 0.5355 GB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.239e-05/0.4097, allocations: 19.81 kB / 0.5355 GB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002475/0.41, allocations: 235.3 kB / 0.5358 GB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.41, allocations: 11.83 kB / 0.5358 GB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.212e-05/0.41, allocations: 15.31 kB / 0.5358 GB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002511/0.4103, allocations: 179.3 kB / 0.536 GB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.4103, allocations: 0 / 0.536 GB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.4103, allocations: 7.938 kB / 0.536 GB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.4103, allocations: 0 / 0.536 GB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001877/0.4105, allocations: 121.8 kB / 0.5361 GB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006023/0.4112, allocations: 489 kB / 0.5366 GB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.4113, allocations: 125.5 kB / 0.5367 GB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.581e-05/0.4114, allocations: 70.95 kB / 0.5367 GB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.4114, allocations: 4 kB / 0.5367 GB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001541/0.4116, allocations: 128.2 kB / 0.5369 GB, free: 13.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.383e-06/0.4116, allocations: 4 kB / 0.5369 GB, free: 13.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002737/0.4119, allocations: 186 kB / 0.5371 GB, free: 13.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.4119, allocations: 84.92 kB / 0.5371 GB, free: 13.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.4121, allocations: 142.9 kB / 0.5373 GB, free: 13.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.4121, allocations: 32.89 kB / 0.5373 GB, free: 13.01 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.695e-05/0.4121, allocations: 123.7 kB / 0.5374 GB, free: 12.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.067e-05/0.4122, allocations: 65.67 kB / 0.5375 GB, free: 12.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.747e-06/0.4122, allocations: 3.375 kB / 0.5375 GB, free: 12.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.4123, allocations: 334.2 kB / 0.5378 GB, free: 12.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.738e-05/0.4124, allocations: 69.5 kB / 0.5379 GB, free: 12.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.4126, allocations: 163.1 kB / 0.538 GB, free: 12.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001278/0.4127, allocations: 95.72 kB / 0.5381 GB, free: 12.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.4127, allocations: 0 / 0.5381 GB, free: 12.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003445/0.4131, allocations: 277.5 kB / 0.5384 GB, free: 12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.4131, allocations: 4 kB / 0.5384 GB, free: 12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.4131, allocations: 4 kB / 0.5384 GB, free: 12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.4131, allocations: 4 kB / 0.5384 GB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.4132, allocations: 34.73 kB / 0.5384 GB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.4133, allocations: 8.016 kB / 0.5384 GB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.854e-05/0.4133, allocations: 26.8 kB / 0.5385 GB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.977e-05/0.4134, allocations: 19.42 kB / 0.5385 GB, free: 11.91 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 9.259e-05/0.4135, allocations: 139.3 kB / 0.5386 GB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.857e-05/0.4135, allocations: 11.91 kB / 0.5386 GB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.358e-05/0.4135, allocations: 19.8 kB / 0.5386 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.4136, allocations: 0 / 0.5386 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.4136, allocations: 288 / 0.5386 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.4136, allocations: 0 / 0.5386 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001982/0.4138, allocations: 245.2 kB / 0.5389 GB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.4138, allocations: 4 kB / 0.5389 GB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.691e-05/0.4138, allocations: 8.047 kB / 0.5389 GB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.4138, allocations: 8 kB / 0.5389 GB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.4138, allocations: 3.125 kB / 0.5389 GB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.136e-05/0.4139, allocations: 4 kB / 0.5389 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.4139, allocations: 3.938 kB / 0.5389 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002371/0.4141, allocations: 241.8 kB / 0.5391 GB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.918e-05/0.4142, allocations: 88.95 kB / 0.5392 GB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.4142, allocations: 7.75 kB / 0.5392 GB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.744e-05/0.4142, allocations: 3.984 kB / 0.5392 GB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.546e-05/0.4143, allocations: 15.55 kB / 0.5392 GB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-06/0.4143, allocations: 4 kB / 0.5392 GB, free: 11.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.683e-05/0.4143, allocations: 103 kB / 0.5393 GB, free: 11.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4143, allocations: 0 / 0.5393 GB, free: 11.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002463/0.4146, allocations: 51.47 kB / 0.5394 GB, free: 10.97 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.0003855/0.415, allocations: 208.7 kB / 0.5396 GB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002733/0.4153, allocations: 203.7 kB / 0.5398 GB, free: 10.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.4153, allocations: 0 / 0.5398 GB, free: 10.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.871e-05/0.4154, allocations: 102.8 kB / 0.5399 GB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001019/0.4155, allocations: 11.52 kB / 0.5399 GB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003929/0.4159, allocations: 249.8 kB / 0.5401 GB, free: 10.31 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.4162, allocations: 0.7434 MB / 0.5409 GB, free: 9.547 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.455e-05/0.4163, allocations: 21.2 kB / 0.5409 GB, free: 9.527 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.687e-05/0.4163, allocations: 15.44 kB / 0.5409 GB, free: 9.512 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4163, allocations: 0 / 0.5409 GB, free: 9.512 MB / 362.7 MB Notification: Performance of Templates: time 0.003351/0.4196, allocations: 1.263 MB / 0.5421 GB, free: 8.266 MB / 362.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)