Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009435/0.0009435, allocations: 181 kB / 15.8 MB, free: 6.336 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.176/1.176, allocations: 223.2 MB / 239.7 MB, free: 44 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009316/0.0009316, allocations: 100.2 kB / 290.9 MB, free: 4.543 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.05043/0.05043, allocations: 12.05 MB / 354 MB, free: 1.281 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003025/0.0003025, allocations: 12 kB / 417.9 MB, free: 1.391 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1779/0.1782, allocations: 53.35 MB / 471.2 MB, free: 65.11 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08114/0.2594, allocations: 81.53 MB / 0.5398 GB, free: 15.47 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/0.2596, allocations: 75.97 kB / 0.5399 GB, free: 15.39 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004253/0.2639, allocations: 1.718 MB / 0.5416 GB, free: 13.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2639, allocations: 0 / 0.5416 GB, free: 13.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.2639, allocations: 4 kB / 0.5416 GB, free: 13.67 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003664/0.2643, allocations: 438.4 kB / 0.542 GB, free: 13.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.2643, allocations: 8.031 kB / 0.542 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.942e-05/0.2644, allocations: 11.91 kB / 0.542 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000214/0.2646, allocations: 194.8 kB / 0.5422 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.2646, allocations: 4 kB / 0.5422 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.763e-05/0.2647, allocations: 12 kB / 0.5422 GB, free: 12.92 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004066/0.2651, allocations: 259.9 kB / 0.5425 GB, free: 12.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.2651, allocations: 0 / 0.5425 GB, free: 12.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.2651, allocations: 8 kB / 0.5425 GB, free: 12.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.085e-05/0.2651, allocations: 7.984 kB / 0.5425 GB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001046/0.2653, allocations: 63.91 kB / 0.5425 GB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003348/0.2656, allocations: 305.6 kB / 0.5428 GB, free: 12.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001767/0.2658, allocations: 136.9 kB / 0.543 GB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.2658, allocations: 8.031 kB / 0.543 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.2658, allocations: 34.59 kB / 0.543 GB, free: 12.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 1.253e-06/0.2658, allocations: 0 / 0.543 GB, free: 12.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004578/0.2663, allocations: 415.2 kB / 0.5434 GB, free: 11.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.86e-05/0.2664, allocations: 136.5 kB / 0.5435 GB, free: 11.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.022e-05/0.2665, allocations: 116.9 kB / 0.5436 GB, free: 11.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.2665, allocations: 25.7 kB / 0.5437 GB, free: 11.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.79e-05/0.2666, allocations: 96.55 kB / 0.5438 GB, free: 11.13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.081e-05/0.2666, allocations: 15.89 kB / 0.5438 GB, free: 11.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.663e-06/0.2666, allocations: 0 / 0.5438 GB, free: 11.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.2667, allocations: 322.8 kB / 0.5441 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.621e-05/0.2668, allocations: 28.36 kB / 0.5441 GB, free: 10.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.2669, allocations: 158.1 kB / 0.5443 GB, free: 10.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/0.267, allocations: 115.3 kB / 0.5444 GB, free: 10.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.2671, allocations: 4 kB / 0.5444 GB, free: 10.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003079/0.2674, allocations: 253 kB / 0.5446 GB, free: 10.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.45e-05/0.2674, allocations: 65 kB / 0.5447 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.2674, allocations: 4 kB / 0.5447 GB, free: 10.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.2675, allocations: 8 kB / 0.5447 GB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.679e-05/0.2675, allocations: 27.92 kB / 0.5447 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.2676, allocations: 4 kB / 0.5447 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.456e-05/0.2676, allocations: 19.88 kB / 0.5447 GB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.2677, allocations: 12 kB / 0.5447 GB, free: 10.01 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 19 (synchronizeRealtime.initialized,keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],keyboardInput.KeyCode[6],keyboardInput.KeyCode[5],keyboardInput.KeyCode[4],keyboardInput.KeyCode[3],keyboardInput.KeyCode[2],keyboardInput.KeyCode[1],keyboardInput.keySpace,keyboardInput.keyReturn,keyboardInput.keyLeft,keyboardInput.keyRight,keyboardInput.keyDown,keyboardInput.keyUp,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.0001449/0.2678, allocations: 207.5 kB / 0.5449 GB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/0.268, allocations: 121.4 kB / 0.5451 GB, free: 9.664 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.188e-05/0.268, allocations: 17.02 kB / 0.5451 GB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.268, allocations: 4 kB / 0.5451 GB, free: 9.641 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.268, allocations: 7.938 kB / 0.5451 GB, free: 9.633 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.268, allocations: 0 / 0.5451 GB, free: 9.633 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001698/0.2682, allocations: 185.5 kB / 0.5453 GB, free: 9.402 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.2682, allocations: 3.953 kB / 0.5453 GB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.189e-05/0.2683, allocations: 8 kB / 0.5453 GB, free: 9.391 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2683, allocations: 0 / 0.5453 GB, free: 9.391 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.2683, allocations: 11.97 kB / 0.5453 GB, free: 9.379 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2683, allocations: 4 kB / 0.5453 GB, free: 9.375 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2683, allocations: 0 / 0.5453 GB, free: 9.375 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003137/0.2686, allocations: 332.6 kB / 0.5456 GB, free: 9.016 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.582e-05/0.2687, allocations: 88.95 kB / 0.5457 GB, free: 8.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.523e-05/0.2687, allocations: 11.98 kB / 0.5457 GB, free: 8.898 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.144e-05/0.2688, allocations: 0 / 0.5457 GB, free: 8.898 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.722e-05/0.2688, allocations: 12 kB / 0.5457 GB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.2688, allocations: 4 kB / 0.5457 GB, free: 8.883 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.626e-05/0.2689, allocations: 91.81 kB / 0.5458 GB, free: 8.793 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2689, allocations: 0 / 0.5458 GB, free: 8.793 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002734/0.2691, allocations: 31.94 kB / 0.5458 GB, free: 8.762 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: 19 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,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: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 2 * Record equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0004749/0.2696, allocations: 278.7 kB / 0.5461 GB, free: 8.551 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002662/0.2699, allocations: 238.4 kB / 0.5463 GB, free: 8.293 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2699, allocations: 0 / 0.5463 GB, free: 8.293 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.108e-05/0.27, allocations: 124 kB / 0.5464 GB, free: 8.148 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002329/0.2702, allocations: 83.89 kB / 0.5465 GB, free: 8.066 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009415/0.2712, allocations: 487.5 kB / 0.547 GB, free: 7.562 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.2715, allocations: 0.7197 MB / 0.5477 GB, free: 6.816 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.545e-05/0.2715, allocations: 20.8 kB / 0.5477 GB, free: 6.793 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.927e-05/0.2715, allocations: 15.44 kB / 0.5477 GB, free: 6.777 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2715, allocations: 0 / 0.5477 GB, free: 6.777 MB / 378.7 MB Notification: Performance of Templates: time 0.003408/0.275, allocations: 1.424 MB / 0.5491 GB, free: 5.359 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1)