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.001002/0.001002, allocations: 177.6 kB / 8.045 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 221.5 MB / 230 MB, free: 7.555 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.0008666/0.0008666, allocations: 106.5 kB / 280.9 MB, free: 5.309 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.04896/0.04896, allocations: 11.9 MB / 343.6 MB, free: 3.484 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.115e-05/2.116e-05, allocations: 2.516 kB / 403.1 MB, free: 45.4 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 53.35 MB / 456.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.421/0.5343, allocations: 81.46 MB / 0.5253 GB, free: 16.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001787/0.5345, allocations: 75.08 kB / 0.5254 GB, free: 16.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006919/0.5414, allocations: 2.653 MB / 0.528 GB, free: 16.44 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.5415, allocations: 1.094 kB / 0.528 GB, free: 16.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.625e-05/0.5415, allocations: 3.406 kB / 0.528 GB, free: 16.44 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.0003855/0.5419, allocations: 408.2 kB / 0.5284 GB, free: 16.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.5419, allocations: 11.42 kB / 0.5284 GB, free: 16.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.852e-05/0.542, allocations: 15 kB / 0.5284 GB, free: 16.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002352/0.5422, allocations: 239 kB / 0.5286 GB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.5423, allocations: 3.594 kB / 0.5286 GB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.324e-05/0.5423, allocations: 15.97 kB / 0.5287 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001578/0.5425, allocations: 73.12 kB / 0.5287 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/0.5427, allocations: 134.8 kB / 0.5289 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.5427, allocations: 0 / 0.5289 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.5427, allocations: 4.188 kB / 0.5289 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.5427, allocations: 0 / 0.5289 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005902/0.5433, allocations: 437.9 kB / 0.5293 GB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.878e-05/0.5434, allocations: 69.27 kB / 0.5294 GB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.746e-05/0.5435, allocations: 44.95 kB / 0.5294 GB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.5435, allocations: 7.172 kB / 0.5294 GB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001533/0.5437, allocations: 85.91 kB / 0.5295 GB, free: 15.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.5437, allocations: 0 / 0.5295 GB, free: 15.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002222/0.5439, allocations: 92.94 kB / 0.5296 GB, free: 15.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.855e-05/0.544, allocations: 83.19 kB / 0.5297 GB, free: 15.22 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.5441, allocations: 143.5 kB / 0.5298 GB, free: 15.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.5441, allocations: 29.45 kB / 0.5298 GB, free: 15.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.165e-05/0.5442, allocations: 128.2 kB / 0.5299 GB, free: 14.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.478e-05/0.5442, allocations: 25.55 kB / 0.53 GB, free: 14.97 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-06/0.5442, allocations: 5.125 kB / 0.53 GB, free: 14.97 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.964e-05/0.5443, allocations: 321.6 kB / 0.5303 GB, free: 14.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.323e-05/0.5444, allocations: 21.73 kB / 0.5303 GB, free: 14.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.345e-05/0.5444, allocations: 57.45 kB / 0.5303 GB, free: 14.62 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.433e-05/0.5445, allocations: 30.69 kB / 0.5304 GB, free: 14.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.5445, allocations: 0 / 0.5304 GB, free: 14.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001521/0.5446, allocations: 114.8 kB / 0.5305 GB, free: 14.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.5447, allocations: 10.75 kB / 0.5305 GB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.5447, allocations: 4.859 kB / 0.5305 GB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.5447, allocations: 1.812 kB / 0.5305 GB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.085e-05/0.5448, allocations: 15.47 kB / 0.5305 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.5448, allocations: 0 / 0.5305 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.723e-05/0.5448, allocations: 12.27 kB / 0.5305 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.5448, allocations: 7.125 kB / 0.5305 GB, free: 14.55 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 5.896e-05/0.5449, allocations: 103.4 kB / 0.5306 GB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.822e-05/0.5449, allocations: 19.28 kB / 0.5307 GB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.042e-05/0.545, allocations: 13.11 kB / 0.5307 GB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.545, allocations: 7.688 kB / 0.5307 GB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.545, allocations: 0 / 0.5307 GB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.545, allocations: 0.75 kB / 0.5307 GB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/0.5452, allocations: 191.1 kB / 0.5309 GB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.5452, allocations: 0.5625 kB / 0.5309 GB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.274e-05/0.5452, allocations: 7.203 kB / 0.5309 GB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.5452, allocations: 5.688 kB / 0.5309 GB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.5452, allocations: 3.438 kB / 0.5309 GB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.5452, allocations: 3.953 kB / 0.5309 GB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.5452, allocations: 0.75 kB / 0.5309 GB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001562/0.5454, allocations: 143.1 kB / 0.531 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.507e-05/0.5455, allocations: 90.5 kB / 0.5311 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.5455, allocations: 6.391 kB / 0.5311 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.579e-05/0.5455, allocations: 0 / 0.5311 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.388e-05/0.5456, allocations: 9.656 kB / 0.5311 GB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.5456, allocations: 4.609 kB / 0.5311 GB, free: 14.06 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.19e-05/0.5456, allocations: 117.3 kB / 0.5312 GB, free: 13.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5457, allocations: 1.188 kB / 0.5312 GB, free: 13.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002502/0.5459, allocations: 33.84 kB / 0.5313 GB, free: 13.97 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.0005133/0.5464, allocations: 244.2 kB / 0.5315 GB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001816/0.5466, allocations: 94.39 kB / 0.5316 GB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5466, allocations: 0 / 0.5316 GB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.492e-05/0.5467, allocations: 59.41 kB / 0.5316 GB, free: 13.76 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001172/0.5468, allocations: 7.016 kB / 0.5317 GB, free: 13.76 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003815/0.5472, allocations: 186.9 kB / 0.5318 GB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008994/0.5481, allocations: 0.7365 MB / 0.5325 GB, free: 28.95 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.683e-05/0.5482, allocations: 9.516 kB / 0.5326 GB, free: 28.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.357e-05/0.5482, allocations: 19.22 kB / 0.5326 GB, free: 28.94 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5482, allocations: 1.312 kB / 0.5326 GB, free: 28.94 MB / 378.7 MB Notification: Performance of Templates: time 0.004099/0.5523, allocations: 1.299 MB / 0.5338 GB, free: 28.77 MB / 378.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)