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.001271/0.001271, allocations: 180.9 kB / 8.049 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.515/1.515, allocations: 221.5 MB / 230 MB, free: 7.512 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.000936/0.0009357, allocations: 99.47 kB / 280.9 MB, free: 5.262 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.05008/0.05008, allocations: 11.91 MB / 343.6 MB, free: 3.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.808e-05/1.802e-05, allocations: 1.938 kB / 403.1 MB, free: 45.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1089, allocations: 53.36 MB / 456.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3931/0.5021, allocations: 80.79 MB / 0.5247 GB, free: 17.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.5024, allocations: 76.09 kB / 0.5247 GB, free: 17.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004645/0.5071, allocations: 1.736 MB / 0.5264 GB, free: 16.7 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5071, allocations: 0 / 0.5264 GB, free: 16.7 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.5071, allocations: 6.016 kB / 0.5264 GB, free: 16.7 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.000331/0.5075, allocations: 409.5 kB / 0.5268 GB, free: 16.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.5075, allocations: 9.562 kB / 0.5268 GB, free: 16.28 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.5076, allocations: 13.81 kB / 0.5269 GB, free: 16.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.5078, allocations: 204.2 kB / 0.5271 GB, free: 16.06 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.5078, allocations: 2.281 kB / 0.5271 GB, free: 16.06 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.952e-05/0.5079, allocations: 9.219 kB / 0.5271 GB, free: 16.06 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001508/0.508, allocations: 53.77 kB / 0.5271 GB, free: 16.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003687/0.5084, allocations: 252.3 kB / 0.5274 GB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.5084, allocations: 7.656 kB / 0.5274 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.5084, allocations: 1.25 kB / 0.5274 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.368e-05/0.5085, allocations: 6.219 kB / 0.5274 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003117/0.5088, allocations: 261.3 kB / 0.5276 GB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001842/0.509, allocations: 133.7 kB / 0.5277 GB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.66e-05/0.5091, allocations: 66.05 kB / 0.5278 GB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.257e-05/0.5091, allocations: 0 / 0.5278 GB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.5091, allocations: 37.41 kB / 0.5278 GB, free: 15.6 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.263e-06/0.5091, allocations: 3.938 kB / 0.5279 GB, free: 15.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0002885/0.5094, allocations: 137.5 kB / 0.528 GB, free: 15.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.5095, allocations: 134.1 kB / 0.5281 GB, free: 15.4 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.188e-05/0.5096, allocations: 112.4 kB / 0.5282 GB, free: 15.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/0.5096, allocations: 27.58 kB / 0.5282 GB, free: 15.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.961e-05/0.5096, allocations: 94.11 kB / 0.5283 GB, free: 15.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.222e-05/0.5097, allocations: 16.88 kB / 0.5283 GB, free: 15.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.113e-06/0.5097, allocations: 3.938 kB / 0.5284 GB, free: 15.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.382e-05/0.5097, allocations: 320.7 kB / 0.5287 GB, free: 14.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.418e-05/0.5098, allocations: 27.86 kB / 0.5287 GB, free: 14.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.114e-05/0.5099, allocations: 147.2 kB / 0.5288 GB, free: 14.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.688e-05/0.51, allocations: 51.03 kB / 0.5289 GB, free: 14.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.51, allocations: 1.875 kB / 0.5289 GB, free: 14.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002671/0.5103, allocations: 174.2 kB / 0.529 GB, free: 14.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.705e-05/0.5103, allocations: 60.11 kB / 0.5291 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.5103, allocations: 4.719 kB / 0.5291 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.5103, allocations: 6.875 kB / 0.5291 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.5105, allocations: 26.69 kB / 0.5291 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.49e-05/0.5105, allocations: 11.44 kB / 0.5291 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.718e-05/0.5106, allocations: 13.88 kB / 0.5292 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.5106, allocations: 15.81 kB / 0.5292 GB, free: 14.55 MB / 362.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 () * 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.0001125/0.5107, allocations: 180.5 kB / 0.5293 GB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.5109, allocations: 115.5 kB / 0.5295 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.232e-05/0.5109, allocations: 12.52 kB / 0.5295 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/0.511, allocations: 6.344 kB / 0.5295 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.511, allocations: 1.516 kB / 0.5295 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.511, allocations: 1.797 kB / 0.5295 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.5111, allocations: 160.4 kB / 0.5296 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.5111, allocations: 7.781 kB / 0.5296 GB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.262e-05/0.5112, allocations: 1.828 kB / 0.5296 GB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.5112, allocations: 0 / 0.5296 GB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.5112, allocations: 6.484 kB / 0.5296 GB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.5112, allocations: 1.938 kB / 0.5296 GB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.5112, allocations: 3.938 kB / 0.5297 GB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002259/0.5114, allocations: 264.7 kB / 0.5299 GB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.227e-05/0.5115, allocations: 91.3 kB / 0.53 GB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.186e-05/0.5115, allocations: 6.844 kB / 0.53 GB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.314e-05/0.5116, allocations: 2.625 kB / 0.53 GB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.758e-05/0.5116, allocations: 10.16 kB / 0.53 GB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.687e-06/0.5116, allocations: 1.094 kB / 0.53 GB, free: 13.88 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.138e-05/0.5117, allocations: 93.61 kB / 0.5301 GB, free: 13.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5117, allocations: 0 / 0.5301 GB, free: 13.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002861/0.512, allocations: 42.17 kB / 0.5301 GB, free: 13.78 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: 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) * 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.0005746/0.5125, allocations: 258.4 kB / 0.5304 GB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002603/0.5128, allocations: 222.1 kB / 0.5306 GB, free: 13.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.5128, allocations: 1.5 kB / 0.5306 GB, free: 13.49 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.392e-05/0.5129, allocations: 125.6 kB / 0.5307 GB, free: 13.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.5132, allocations: 65.55 kB / 0.5308 GB, free: 13.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009353/0.5141, allocations: 386.3 kB / 0.5312 GB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007462/0.5149, allocations: 0.7156 MB / 0.5319 GB, free: 28.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.25e-05/0.5149, allocations: 15.3 kB / 0.5319 GB, free: 28.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.984e-05/0.515, allocations: 17.05 kB / 0.5319 GB, free: 28.54 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.515, allocations: 0 / 0.5319 GB, free: 28.54 MB / 378.7 MB Notification: Performance of Templates: time 0.004145/0.5191, allocations: 1.404 MB / 0.5333 GB, free: 28.34 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)