Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.ClockedBlocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 182.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.577/1.577, allocations: 221.4 MB / 235.1 MB, free: 14.44 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.001044/0.001044, allocations: 90.52 kB / 286.1 MB, free: 12.99 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.08557/0.08557, allocations: 11.9 MB / 348.9 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.86e-05/2.861e-05, allocations: 3.984 kB / 410.1 MB, free: 58.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1059, allocations: 53.35 MB / 463.5 MB, free: 4.895 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3959/0.5018, allocations: 81.63 MB / 0.5323 GB, free: 1.656 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.5022, allocations: 67.72 kB / 0.5324 GB, free: 1.625 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005907/0.5081, allocations: 1.957 MB / 0.5343 GB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.526e-06/0.5081, allocations: 0 / 0.5343 GB, free: 15.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.609e-05/0.5082, allocations: 15.92 kB / 0.5343 GB, free: 15.9 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004276/0.5086, allocations: 401 kB / 0.5347 GB, free: 15.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.5087, allocations: 15.97 kB / 0.5347 GB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.135e-05/0.5087, allocations: 7.906 kB / 0.5347 GB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.509, allocations: 197.7 kB / 0.5349 GB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.509, allocations: 8 kB / 0.5349 GB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.989e-05/0.509, allocations: 7.938 kB / 0.5349 GB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000311/0.5094, allocations: 147.6 kB / 0.5351 GB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.5094, allocations: 3.953 kB / 0.5351 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.5094, allocations: 11.94 kB / 0.5351 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.5094, allocations: 0 / 0.5351 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.683e-05/0.5095, allocations: 34.73 kB / 0.5351 GB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004001/0.5099, allocations: 283 kB / 0.5354 GB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000212/0.5101, allocations: 161.1 kB / 0.5355 GB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.216e-05/0.5102, allocations: 36.94 kB / 0.5356 GB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.5102, allocations: 0 / 0.5356 GB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.5103, allocations: 34.56 kB / 0.5356 GB, free: 14.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.5103, allocations: 0 / 0.5356 GB, free: 14.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.000272/0.5106, allocations: 143 kB / 0.5357 GB, free: 14.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.902e-05/0.5107, allocations: 136.1 kB / 0.5359 GB, free: 14.15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.5108, allocations: 129.1 kB / 0.536 GB, free: 14.03 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.5108, allocations: 25.7 kB / 0.536 GB, free: 14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.527e-05/0.5109, allocations: 99.22 kB / 0.5361 GB, free: 13.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.5109, allocations: 11.53 kB / 0.5361 GB, free: 13.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.458e-06/0.5109, allocations: 4 kB / 0.5361 GB, free: 13.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.5111, allocations: 322.6 kB / 0.5364 GB, free: 13.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.316e-05/0.5111, allocations: 11.31 kB / 0.5364 GB, free: 13.56 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.861e-05/0.5112, allocations: 60.7 kB / 0.5365 GB, free: 13.49 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.5113, allocations: 75.06 kB / 0.5366 GB, free: 13.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.5114, allocations: 0 / 0.5366 GB, free: 13.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002107/0.5116, allocations: 162.1 kB / 0.5367 GB, free: 13.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.978e-05/0.5116, allocations: 60.97 kB / 0.5368 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.5117, allocations: 4 kB / 0.5368 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.5117, allocations: 0 / 0.5368 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.475e-05/0.5117, allocations: 11.98 kB / 0.5368 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.128e-06/0.5118, allocations: 144 / 0.5368 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.185e-05/0.5118, allocations: 11.62 kB / 0.5368 GB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.5118, allocations: 8.203 kB / 0.5368 GB, free: 13.14 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 6 (synchronizeRealtime.initialized,keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * 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.0001349/0.512, allocations: 177.3 kB / 0.537 GB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.5121, allocations: 64.05 kB / 0.537 GB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.395e-05/0.5121, allocations: 10.84 kB / 0.5371 GB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.5121, allocations: 4 kB / 0.5371 GB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.5121, allocations: 0 / 0.5371 GB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.5122, allocations: 0 / 0.5371 GB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.5124, allocations: 179.9 kB / 0.5372 GB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.5124, allocations: 0 / 0.5372 GB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.46e-05/0.5124, allocations: 7.984 kB / 0.5372 GB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.5124, allocations: 8.047 kB / 0.5373 GB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.5124, allocations: 7.938 kB / 0.5373 GB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.5124, allocations: 0 / 0.5373 GB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.5124, allocations: 0 / 0.5373 GB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002641/0.5127, allocations: 269.8 kB / 0.5375 GB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.315e-05/0.5128, allocations: 92.47 kB / 0.5376 GB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.5128, allocations: 4 kB / 0.5376 GB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.551e-05/0.5129, allocations: 4 kB / 0.5376 GB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.332e-05/0.5129, allocations: 11.48 kB / 0.5376 GB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.5129, allocations: 4 kB / 0.5376 GB, free: 12.24 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.322e-05/0.513, allocations: 99.19 kB / 0.5377 GB, free: 12.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.513, allocations: 0 / 0.5377 GB, free: 12.15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002693/0.5133, allocations: 31.17 kB / 0.5378 GB, free: 12.12 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: 6 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.0006661/0.5139, allocations: 299.1 kB / 0.538 GB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002292/0.5142, allocations: 157.8 kB / 0.5382 GB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.5142, allocations: 0 / 0.5382 GB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.294e-05/0.5143, allocations: 126.2 kB / 0.5383 GB, free: 11.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001942/0.5145, allocations: 17.69 kB / 0.5383 GB, free: 11.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009738/0.5155, allocations: 353.3 kB / 0.5387 GB, free: 11.26 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.5158, allocations: 0.6965 MB / 0.5393 GB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.937e-05/0.5159, allocations: 16.64 kB / 0.5394 GB, free: 10.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.897e-05/0.516, allocations: 19.38 kB / 0.5394 GB, free: 10.5 MB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.516, allocations: 0 / 0.5394 GB, free: 10.5 MB / 362.7 MB Notification: Performance of Templates: time 0.004772/0.5208, allocations: 1.596 MB / 0.5409 GB, free: 8.918 MB / 362.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1)