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.001002/0.001002, allocations: 180.5 kB / 15.8 MB, free: 6.34 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.311/1.311, allocations: 223.2 MB / 239.7 MB, free: 1.77 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.000857/0.000857, allocations: 99.78 kB / 290.9 MB, free: 13.93 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.05566/0.05566, allocations: 12.05 MB / 354 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003022/0.0003023, allocations: 8.906 kB / 417.9 MB, free: 87.8 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08844/0.08876, allocations: 53.36 MB / 471.2 MB, free: 37.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3273/0.4161, allocations: 82.06 MB / 0.5403 GB, free: 15.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001912/0.4163, allocations: 74.98 kB / 0.5404 GB, free: 15.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006233/0.4225, allocations: 2.443 MB / 0.5428 GB, free: 30.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.4226, allocations: 0 / 0.5428 GB, free: 30.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.284e-05/0.4226, allocations: 3.875 kB / 0.5428 GB, free: 30.98 MB / 378.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.000502/0.4231, allocations: 440 kB / 0.5432 GB, free: 30.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.4231, allocations: 7.875 kB / 0.5432 GB, free: 30.58 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/0.4233, allocations: 23.34 kB / 0.5432 GB, free: 30.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002857/0.4236, allocations: 231.9 kB / 0.5435 GB, free: 30.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.4236, allocations: 22.25 kB / 0.5435 GB, free: 30.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.4236, allocations: 10.94 kB / 0.5435 GB, free: 30.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003083/0.4239, allocations: 184.8 kB / 0.5437 GB, free: 30.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.424, allocations: 0 / 0.5437 GB, free: 30.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.424, allocations: 7.625 kB / 0.5437 GB, free: 30.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.424, allocations: 13.66 kB / 0.5437 GB, free: 30.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.4242, allocations: 115.9 kB / 0.5438 GB, free: 30.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006798/0.4249, allocations: 482.8 kB / 0.5443 GB, free: 29.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.425, allocations: 118.9 kB / 0.5444 GB, free: 29.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.4251, allocations: 0 / 0.5444 GB, free: 29.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001723/0.4252, allocations: 135.4 kB / 0.5445 GB, free: 29.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.192e-06/0.4253, allocations: 0 / 0.5445 GB, free: 29.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004191/0.4257, allocations: 420 kB / 0.5449 GB, free: 29.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.4257, allocations: 95.77 kB / 0.545 GB, free: 29.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.4258, allocations: 132.4 kB / 0.5451 GB, free: 29.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.4259, allocations: 39.22 kB / 0.5452 GB, free: 29.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.959e-05/0.4259, allocations: 129.2 kB / 0.5453 GB, free: 29.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.092e-05/0.426, allocations: 58.8 kB / 0.5453 GB, free: 29.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.117e-05/0.426, allocations: 7.438 kB / 0.5453 GB, free: 29.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.083e-05/0.4261, allocations: 327.5 kB / 0.5457 GB, free: 28.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.492e-05/0.4262, allocations: 67.84 kB / 0.5457 GB, free: 28.94 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.4263, allocations: 164.1 kB / 0.5459 GB, free: 28.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001557/0.4265, allocations: 106.5 kB / 0.546 GB, free: 28.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.4265, allocations: 0 / 0.546 GB, free: 28.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003651/0.4269, allocations: 276.4 kB / 0.5462 GB, free: 28.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.4269, allocations: 7.781 kB / 0.5462 GB, free: 28.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.4269, allocations: 3.938 kB / 0.5462 GB, free: 28.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.4269, allocations: 3.812 kB / 0.5463 GB, free: 28.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.4271, allocations: 34.58 kB / 0.5463 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.4271, allocations: 3.906 kB / 0.5463 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.158e-05/0.4272, allocations: 17.22 kB / 0.5463 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.238e-05/0.4272, allocations: 15.84 kB / 0.5463 GB, free: 28.74 MB / 378.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.4273, allocations: 169.6 kB / 0.5465 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.11e-05/0.4274, allocations: 11.97 kB / 0.5465 GB, free: 28.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.988e-05/0.4274, allocations: 19.27 kB / 0.5465 GB, free: 28.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.4274, allocations: 3.984 kB / 0.5465 GB, free: 28.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.4275, allocations: 3.938 kB / 0.5465 GB, free: 28.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.4275, allocations: 3.875 kB / 0.5465 GB, free: 28.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/0.4277, allocations: 248.6 kB / 0.5468 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.4277, allocations: 3.953 kB / 0.5468 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.868e-05/0.4277, allocations: 9.922 kB / 0.5468 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.4277, allocations: 3.875 kB / 0.5468 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.437e-06/0.4277, allocations: 0 / 0.5468 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.4277, allocations: 0 / 0.5468 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.4277, allocations: 0 / 0.5468 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002367/0.428, allocations: 241.6 kB / 0.547 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.625e-05/0.428, allocations: 94.78 kB / 0.5471 GB, free: 28.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.4281, allocations: 3.938 kB / 0.5471 GB, free: 28.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.762e-05/0.4281, allocations: 3.688 kB / 0.5471 GB, free: 28.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.28e-05/0.4281, allocations: 15.67 kB / 0.5471 GB, free: 28.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/0.4282, allocations: 5.969 kB / 0.5471 GB, free: 28.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.373e-05/0.4282, allocations: 105.7 kB / 0.5472 GB, free: 28.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4282, allocations: 0 / 0.5472 GB, free: 28.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002849/0.4285, allocations: 52.34 kB / 0.5473 GB, free: 28.1 MB / 378.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 () * 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 (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.0005408/0.4291, allocations: 208 kB / 0.5475 GB, free: 27.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002992/0.4294, allocations: 211 kB / 0.5477 GB, free: 27.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4294, allocations: 4.062 kB / 0.5477 GB, free: 27.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.879e-05/0.4295, allocations: 94.86 kB / 0.5478 GB, free: 27.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.4296, allocations: 11.58 kB / 0.5478 GB, free: 27.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000589/0.4302, allocations: 393.2 kB / 0.5482 GB, free: 27.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.4305, allocations: 0.7475 MB / 0.5489 GB, free: 26.95 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.189e-05/0.4306, allocations: 24.12 kB / 0.5489 GB, free: 26.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.768e-05/0.4307, allocations: 15.22 kB / 0.5489 GB, free: 26.95 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4307, allocations: 0 / 0.5489 GB, free: 26.95 MB / 378.7 MB Notification: Performance of Templates: time 0.003922/0.4346, allocations: 1.248 MB / 0.5501 GB, free: 26.8 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)