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.0.0-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-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.001098/0.001098, allocations: 171.9 kB / 16.8 MB, free: 5.027 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.403/1.403, allocations: 223.3 MB / 240.8 MB, free: 11.72 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.0007829/0.0007831, allocations: 104.4 kB / 292 MB, free: 10.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo): time 0.05193/0.05193, allocations: 12.04 MB / 355.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005565/0.0005566, allocations: 16.95 kB / 419.2 MB, free: 53.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1078, allocations: 53.35 MB / 472.5 MB, free: 252 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3371/0.445, allocations: 81.23 MB / 0.5408 GB, free: 380 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.4453, allocations: 79.95 kB / 0.5408 GB, free: 300 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004375/0.4497, allocations: 1.636 MB / 0.5424 GB, free: 14.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4497, allocations: 0 / 0.5424 GB, free: 14.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.4497, allocations: 4 kB / 0.5424 GB, free: 14.67 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0003591/0.4501, allocations: 379.3 kB / 0.5428 GB, free: 14.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.4501, allocations: 11.97 kB / 0.5428 GB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.801e-05/0.4502, allocations: 8.844 kB / 0.5428 GB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001815/0.4504, allocations: 196.1 kB / 0.543 GB, free: 14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.4504, allocations: 384 / 0.543 GB, free: 14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.896e-05/0.4504, allocations: 8.375 kB / 0.543 GB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001676/0.4506, allocations: 112.9 kB / 0.5431 GB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.4506, allocations: 3.938 kB / 0.5431 GB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.4506, allocations: 0 / 0.5431 GB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.4507, allocations: 4 kB / 0.5431 GB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.995e-05/0.4507, allocations: 55.95 kB / 0.5432 GB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000347/0.4511, allocations: 305.6 kB / 0.5435 GB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001422/0.4513, allocations: 113.1 kB / 0.5436 GB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.542e-05/0.4513, allocations: 61.69 kB / 0.5436 GB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.4514, allocations: 0 / 0.5436 GB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001521/0.4515, allocations: 120.9 kB / 0.5438 GB, free: 13.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.102e-06/0.4515, allocations: 0 / 0.5438 GB, free: 13.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003319/0.4519, allocations: 210 kB / 0.544 GB, free: 12.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/0.4519, allocations: 93.09 kB / 0.544 GB, free: 12.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.4521, allocations: 117.8 kB / 0.5442 GB, free: 12.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.4521, allocations: 33.7 kB / 0.5442 GB, free: 12.64 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.198e-05/0.4522, allocations: 92.2 kB / 0.5443 GB, free: 12.54 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.704e-05/0.4522, allocations: 51.34 kB / 0.5443 GB, free: 12.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.097e-05/0.4522, allocations: 8 kB / 0.5443 GB, free: 12.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.4524, allocations: 330.8 kB / 0.5447 GB, free: 12.15 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.442e-05/0.4525, allocations: 59.95 kB / 0.5447 GB, free: 12.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.4527, allocations: 161.8 kB / 0.5449 GB, free: 11.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.4529, allocations: 231.9 kB / 0.5451 GB, free: 11.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4529, allocations: 4 kB / 0.5451 GB, free: 11.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003203/0.4532, allocations: 245.1 kB / 0.5453 GB, free: 11.37 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.4533, allocations: 8 kB / 0.5453 GB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.4533, allocations: 256 / 0.5453 GB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.4533, allocations: 12 kB / 0.5453 GB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.4534, allocations: 32.23 kB / 0.5454 GB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.4534, allocations: 4 kB / 0.5454 GB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.053e-05/0.4535, allocations: 25.53 kB / 0.5454 GB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.4535, allocations: 12 kB / 0.5454 GB, free: 11.28 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (31): * Single equations (assignments): 30 * 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.000121/0.4537, allocations: 157.9 kB / 0.5456 GB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.694e-05/0.4537, allocations: 11.91 kB / 0.5456 GB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.135e-05/0.4537, allocations: 12.84 kB / 0.5456 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.4537, allocations: 4 kB / 0.5456 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.4538, allocations: 0 / 0.5456 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.4538, allocations: 3.984 kB / 0.5456 GB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001471/0.4539, allocations: 193.6 kB / 0.5458 GB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.4539, allocations: 0 / 0.5458 GB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.178e-05/0.454, allocations: 4 kB / 0.5458 GB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.454, allocations: 0 / 0.5458 GB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.454, allocations: 8 kB / 0.5458 GB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.454, allocations: 3.938 kB / 0.5458 GB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.454, allocations: 4.875 kB / 0.5458 GB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003071/0.4543, allocations: 258.3 kB / 0.546 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.075e-05/0.4544, allocations: 88.98 kB / 0.5461 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.4544, allocations: 4 kB / 0.5461 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.519e-05/0.4544, allocations: 7.984 kB / 0.5461 GB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.137e-05/0.4545, allocations: 15.86 kB / 0.5462 GB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-06/0.4545, allocations: 4.062 kB / 0.5462 GB, free: 10.42 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.337e-05/0.4545, allocations: 95.27 kB / 0.5463 GB, free: 10.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4546, allocations: 0 / 0.5463 GB, free: 10.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002449/0.4548, allocations: 35.94 kB / 0.5463 GB, free: 10.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (synchronizeRealtime.dummyState) * 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 (10): * Single equations (assignments): 8 * 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.0005516/0.4554, allocations: 274.4 kB / 0.5465 GB, free: 10.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002672/0.4556, allocations: 189.5 kB / 0.5467 GB, free: 9.902 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.4557, allocations: 0 / 0.5467 GB, free: 9.902 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.286e-05/0.4557, allocations: 85.67 kB / 0.5468 GB, free: 9.812 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001504/0.4559, allocations: 8 kB / 0.5468 GB, free: 9.805 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.457, allocations: 491 kB / 0.5473 GB, free: 9.293 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002243/0.4573, allocations: 0.7048 MB / 0.548 GB, free: 8.562 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.294e-05/0.4573, allocations: 25.02 kB / 0.548 GB, free: 8.539 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.67e-05/0.4574, allocations: 19.42 kB / 0.548 GB, free: 8.52 MB / 362.7 MB Notification: Performance of SimCode: time 2.01e-07/0.4574, allocations: 0 / 0.548 GB, free: 8.52 MB / 362.7 MB Notification: Performance of Templates: time 0.003507/0.4609, allocations: 1.309 MB / 0.5493 GB, free: 7.223 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)