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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009029/0.0009029, allocations: 95.66 kB / 15.73 MB, free: 440 kB / 14.72 MB 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: 178.7 kB / 16.61 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 223.2 MB / 240.6 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1611/0.1611, allocations: 12.03 MB / 303.7 MB, free: 1.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000296/0.0002961, allocations: 8 kB / 367.6 MB, free: 9.531 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.086/0.08632, allocations: 53.36 MB / 420.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.002753/0.08911, allocations: 2.248 MB / 423.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004657/0.0896, allocations: 295.2 kB / 423.4 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.08972, allocations: 7.938 kB / 423.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001878/0.08991, allocations: 35.72 kB / 423.5 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.09003, allocations: 31.88 kB / 423.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001831/0.09022, allocations: 83.83 kB / 423.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001457/0.09038, allocations: 96.27 kB / 423.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.09052, allocations: 61.69 kB / 423.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.108e-05/0.09058, allocations: 43.78 kB / 423.8 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.113e-05/0.09067, allocations: 43.77 kB / 423.8 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.029e-05/0.0907, allocations: 4 kB / 423.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.077e-05/0.09077, allocations: 19.92 kB / 423.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.315e-05/0.09083, allocations: 39.84 kB / 423.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.174e-05/0.09088, allocations: 53.58 kB / 424 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001629/0.09105, allocations: 136 kB / 424.1 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.09106, allocations: 0 / 424.1 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.09107, allocations: 0 / 424.1 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.09108, allocations: 0 / 424.1 MB, free: 0.9297 MB / 350.1 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.0004774/0.09156, allocations: 446.7 kB / 424.5 MB, free: 456 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.0916, allocations: 8.031 kB / 424.5 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.955e-05/0.09165, allocations: 19.72 kB / 424.6 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002248/0.09189, allocations: 222.7 kB / 424.8 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.09191, allocations: 16 kB / 424.8 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.246e-05/0.09194, allocations: 15.95 kB / 424.8 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1741/0.2661, allocations: 176.9 kB / 425 MB, free: 39.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.2662, allocations: 0 / 425 MB, free: 39.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.341e-05/0.2662, allocations: 6.625 kB / 425 MB, free: 39.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.2662, allocations: 6.344 kB / 425 MB, free: 39.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002548/0.2665, allocations: 114.5 kB / 425.1 MB, free: 39.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007829/0.2673, allocations: 480.4 kB / 425.6 MB, free: 39.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000156/0.2674, allocations: 121.2 kB / 425.7 MB, free: 39.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.215e-05/0.2675, allocations: 3.281 kB / 425.7 MB, free: 39.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002031/0.2677, allocations: 129.8 kB / 425.8 MB, free: 39.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.2677, allocations: 2.75 kB / 425.8 MB, free: 39.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004114/0.2681, allocations: 413.8 kB / 426.2 MB, free: 38.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.2682, allocations: 92.61 kB / 426.3 MB, free: 38.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.2683, allocations: 146.8 kB / 426.5 MB, free: 38.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.2683, allocations: 38.2 kB / 426.5 MB, free: 38.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.577e-05/0.2684, allocations: 125.1 kB / 426.6 MB, free: 38.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.97e-05/0.2684, allocations: 62.45 kB / 426.7 MB, free: 38.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-06/0.2684, allocations: 3.938 kB / 426.7 MB, free: 38.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.464e-05/0.2685, allocations: 335 kB / 427 MB, free: 38.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.2686, allocations: 70.56 kB / 427.1 MB, free: 38.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.2687, allocations: 159.2 kB / 427.2 MB, free: 38.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.2689, allocations: 103.9 kB / 427.3 MB, free: 38.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2689, allocations: 0 / 427.3 MB, free: 38.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003348/0.2692, allocations: 271.9 kB / 427.6 MB, free: 38.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.2692, allocations: 9.406 kB / 427.6 MB, free: 38.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/0.2693, allocations: 3.062 kB / 427.6 MB, free: 38.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.2693, allocations: 6.719 kB / 427.6 MB, free: 38.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.2694, allocations: 30.09 kB / 427.6 MB, free: 38.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.2694, allocations: 7.562 kB / 427.7 MB, free: 38.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.982e-05/0.2695, allocations: 24.2 kB / 427.7 MB, free: 38.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.2695, allocations: 11.73 kB / 427.7 MB, free: 38.07 MB / 350.1 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.000132/0.2697, allocations: 176.3 kB / 427.9 MB, free: 37.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.083e-05/0.2697, allocations: 15.81 kB / 427.9 MB, free: 37.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.756e-05/0.2698, allocations: 18.19 kB / 427.9 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.2698, allocations: 0 / 427.9 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.2698, allocations: 3.656 kB / 427.9 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2698, allocations: 1.688 kB / 427.9 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.27, allocations: 242.8 kB / 428.1 MB, free: 37.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.27, allocations: 7.844 kB / 428.1 MB, free: 37.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.844e-05/0.27, allocations: 8.484 kB / 428.2 MB, free: 37.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.27, allocations: 0 / 428.2 MB, free: 37.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.27, allocations: 3.562 kB / 428.2 MB, free: 37.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.27, allocations: 7.172 kB / 428.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.27, allocations: 0.5625 kB / 428.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002137/0.2703, allocations: 239.4 kB / 428.4 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.214e-05/0.2703, allocations: 97.56 kB / 428.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.2703, allocations: 0.8438 kB / 428.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.932e-05/0.2704, allocations: 7.281 kB / 428.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.2704, allocations: 9.031 kB / 428.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-06/0.2704, allocations: 2.969 kB / 428.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.852e-05/0.2705, allocations: 113.8 kB / 428.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2705, allocations: 0 / 428.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.2708, allocations: 49.22 kB / 428.7 MB, free: 37.45 MB / 350.1 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.0004519/0.2712, allocations: 214.3 kB / 428.9 MB, free: 37.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003001/0.2715, allocations: 208.2 kB / 429.1 MB, free: 37.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2715, allocations: 2.406 kB / 429.1 MB, free: 37.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.309e-05/0.2716, allocations: 104.5 kB / 429.2 MB, free: 37.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001221/0.2718, allocations: 6.25 kB / 429.2 MB, free: 37.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005197/0.2723, allocations: 386.6 kB / 429.6 MB, free: 37.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001606/0.2725, allocations: 0.7487 MB / 430.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.834e-05/0.2725, allocations: 19.62 kB / 430.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.744e-05/0.2726, allocations: 19.84 kB / 430.4 MB, free: 36.33 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2726, allocations: 0 / 430.4 MB, free: 36.33 MB / 350.1 MB Notification: Performance of Templates: time 0.003809/0.2764, allocations: 1.25 MB / 431.6 MB, free: 36.23 MB / 350.1 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)