Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.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.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009771/0.0009772, allocations: 181.3 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.269/1.269, allocations: 221.4 MB / 235.1 MB, free: 14.45 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.0008054/0.0008054, allocations: 96.7 kB / 286.1 MB, free: 13 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.05281/0.05281, allocations: 11.9 MB / 348.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.543e-05/2.547e-05, allocations: 0 / 410.1 MB, free: 58.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08494/0.08498, allocations: 53.35 MB / 463.5 MB, free: 4.902 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3225/0.4075, allocations: 82.14 MB / 0.5328 GB, free: 1.168 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001824/0.4078, allocations: 71.22 kB / 0.5329 GB, free: 1.133 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006399/0.4142, allocations: 2.66 MB / 0.5355 GB, free: 14.83 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.4142, allocations: 0 / 0.5355 GB, free: 14.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.4142, allocations: 4 kB / 0.5355 GB, free: 14.83 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0003471/0.4146, allocations: 415.9 kB / 0.5359 GB, free: 14.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.4146, allocations: 8.031 kB / 0.5359 GB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.229e-05/0.4146, allocations: 15.81 kB / 0.5359 GB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002367/0.4149, allocations: 240.1 kB / 0.5361 GB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.4149, allocations: 8.516 kB / 0.5361 GB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.4149, allocations: 15.77 kB / 0.5362 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002238/0.4152, allocations: 154.8 kB / 0.5363 GB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.4152, allocations: 0 / 0.5363 GB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.4152, allocations: 11.3 kB / 0.5363 GB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.4152, allocations: 4 kB / 0.5363 GB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001267/0.4153, allocations: 80.02 kB / 0.5364 GB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005563/0.4159, allocations: 474.3 kB / 0.5368 GB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.883e-05/0.416, allocations: 75.02 kB / 0.5369 GB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.365e-05/0.4161, allocations: 39.03 kB / 0.537 GB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.4161, allocations: 4 kB / 0.537 GB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001262/0.4162, allocations: 95 kB / 0.5371 GB, free: 13.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.042e-06/0.4163, allocations: 0 / 0.5371 GB, free: 13.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001854/0.4164, allocations: 99.14 kB / 0.5371 GB, free: 13.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.4165, allocations: 77.11 kB / 0.5372 GB, free: 13.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.4166, allocations: 141 kB / 0.5374 GB, free: 12.92 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.4166, allocations: 33.08 kB / 0.5374 GB, free: 12.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.183e-05/0.4167, allocations: 130.6 kB / 0.5375 GB, free: 12.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.497e-05/0.4167, allocations: 31.41 kB / 0.5375 GB, free: 12.74 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.58e-06/0.4168, allocations: 4 kB / 0.5375 GB, free: 12.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.642e-05/0.4168, allocations: 325.8 kB / 0.5379 GB, free: 12.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.688e-05/0.4169, allocations: 25.69 kB / 0.5379 GB, free: 12.4 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.581e-05/0.417, allocations: 58.42 kB / 0.5379 GB, free: 12.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.964e-05/0.417, allocations: 30.42 kB / 0.538 GB, free: 12.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.417, allocations: 4 kB / 0.538 GB, free: 12.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001597/0.4172, allocations: 122.7 kB / 0.5381 GB, free: 12.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.4172, allocations: 4 kB / 0.5381 GB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.4172, allocations: 0 / 0.5381 GB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.4172, allocations: 4 kB / 0.5381 GB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.111e-05/0.4173, allocations: 15.88 kB / 0.5381 GB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.4173, allocations: 4 kB / 0.5381 GB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.572e-05/0.4174, allocations: 7.844 kB / 0.5381 GB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.4174, allocations: 4 kB / 0.5381 GB, free: 12.18 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,keyboardKeyInput.keyState,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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 6.457e-05/0.4175, allocations: 116.3 kB / 0.5382 GB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.805e-05/0.4175, allocations: 11.86 kB / 0.5382 GB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.804e-05/0.4175, allocations: 12.5 kB / 0.5383 GB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-06/0.4175, allocations: 0 / 0.5383 GB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.4175, allocations: 4 kB / 0.5383 GB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.4175, allocations: 0 / 0.5383 GB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001713/0.4177, allocations: 233.5 kB / 0.5385 GB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.4177, allocations: 8.125 kB / 0.5385 GB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.12e-05/0.4178, allocations: 4.031 kB / 0.5385 GB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.4178, allocations: 11.94 kB / 0.5385 GB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.4178, allocations: 4 kB / 0.5385 GB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.4178, allocations: 0 / 0.5385 GB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.4178, allocations: 7.938 kB / 0.5385 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001771/0.418, allocations: 141.6 kB / 0.5387 GB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.136e-05/0.4181, allocations: 92.88 kB / 0.5387 GB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/0.4181, allocations: 0 / 0.5387 GB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.911e-05/0.4181, allocations: 11.06 kB / 0.5388 GB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.398e-05/0.4182, allocations: 7.984 kB / 0.5388 GB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.4182, allocations: 0 / 0.5388 GB, free: 11.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.189e-05/0.4183, allocations: 121.8 kB / 0.5389 GB, free: 11.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4183, allocations: 0 / 0.5389 GB, free: 11.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002252/0.4185, allocations: 39.92 kB / 0.5389 GB, free: 11.34 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: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.0004715/0.419, allocations: 245.5 kB / 0.5391 GB, free: 11.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001599/0.4191, allocations: 94.94 kB / 0.5392 GB, free: 11.06 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4191, allocations: 0 / 0.5392 GB, free: 11.06 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.544e-05/0.4192, allocations: 68.12 kB / 0.5393 GB, free: 11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.619e-05/0.4193, allocations: 3.438 kB / 0.5393 GB, free: 11 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003384/0.4197, allocations: 199.3 kB / 0.5395 GB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.4199, allocations: 0.7315 MB / 0.5402 GB, free: 10.05 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.448e-05/0.42, allocations: 16.48 kB / 0.5402 GB, free: 10.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.619e-05/0.42, allocations: 15.44 kB / 0.5402 GB, free: 10.02 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.42, allocations: 0 / 0.5402 GB, free: 10.02 MB / 362.7 MB Notification: Performance of Templates: time 0.003384/0.4234, allocations: 1.35 MB / 0.5416 GB, free: 8.68 MB / 362.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)