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.001261/0.001261, 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.356/1.356, allocations: 221.5 MB / 230 MB, free: 7.582 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.0009604/0.0009602, allocations: 92.94 kB / 280.9 MB, free: 5.324 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.04967/0.04967, allocations: 11.91 MB / 343.6 MB, free: 3.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.558e-05/1.561e-05, allocations: 1.406 kB / 403.1 MB, free: 45.4 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1036, allocations: 53.36 MB / 456.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.388/0.4917, allocations: 80.96 MB / 0.5248 GB, free: 17 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/0.4919, allocations: 75.19 kB / 0.5249 GB, free: 17 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005782/0.4977, allocations: 1.96 MB / 0.5268 GB, free: 16.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.4978, allocations: 5.141 kB / 0.5268 GB, free: 16.63 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.4978, allocations: 9.219 kB / 0.5268 GB, free: 16.62 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.0003426/0.4981, allocations: 410 kB / 0.5272 GB, free: 16.21 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.4982, allocations: 9.031 kB / 0.5272 GB, free: 16.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.772e-05/0.4982, allocations: 9.031 kB / 0.5273 GB, free: 16.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002352/0.4985, allocations: 196.2 kB / 0.5274 GB, free: 16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.4985, allocations: 3.906 kB / 0.5274 GB, free: 16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.4985, allocations: 4.328 kB / 0.5274 GB, free: 16 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001004/0.4986, allocations: 32.48 kB / 0.5275 GB, free: 16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000272/0.4989, allocations: 144.1 kB / 0.5276 GB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.4989, allocations: 1.25 kB / 0.5276 GB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.499, allocations: 1.078 kB / 0.5276 GB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.499, allocations: 6 kB / 0.5276 GB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003146/0.4993, allocations: 264.4 kB / 0.5279 GB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.4995, allocations: 145 kB / 0.528 GB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.928e-05/0.4995, allocations: 40.17 kB / 0.5281 GB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.4996, allocations: 9.266 kB / 0.5281 GB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.4996, allocations: 36.7 kB / 0.5281 GB, free: 15.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.4996, allocations: 0 / 0.5281 GB, free: 15.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002334/0.4998, allocations: 79.33 kB / 0.5282 GB, free: 15.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.4999, allocations: 135.3 kB / 0.5283 GB, free: 15.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.994e-05/0.5, allocations: 124.5 kB / 0.5284 GB, free: 15.17 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.5, allocations: 27.17 kB / 0.5284 GB, free: 15.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.259e-05/0.5001, allocations: 98.2 kB / 0.5285 GB, free: 15.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.51e-05/0.5001, allocations: 15.16 kB / 0.5286 GB, free: 15.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.673e-06/0.5001, allocations: 2.188 kB / 0.5286 GB, free: 15.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.357e-05/0.5002, allocations: 318.5 kB / 0.5289 GB, free: 14.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.562e-05/0.5002, allocations: 14.27 kB / 0.5289 GB, free: 14.72 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.091e-05/0.5003, allocations: 53.42 kB / 0.5289 GB, free: 14.67 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.748e-05/0.5003, allocations: 17.44 kB / 0.5289 GB, free: 14.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.5003, allocations: 3.938 kB / 0.5289 GB, free: 14.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001473/0.5005, allocations: 91.77 kB / 0.529 GB, free: 14.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.764e-05/0.5005, allocations: 64.64 kB / 0.5291 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.5005, allocations: 1.5 kB / 0.5291 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.5005, allocations: 6.469 kB / 0.5291 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.607e-05/0.5006, allocations: 11.23 kB / 0.5291 GB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.5006, allocations: 3.281 kB / 0.5291 GB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.121e-05/0.5007, allocations: 2.438 kB / 0.5291 GB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.5007, allocations: 6.406 kB / 0.5291 GB, free: 14.54 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 8.237e-05/0.5008, allocations: 168.5 kB / 0.5293 GB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.611e-05/0.5009, allocations: 67.78 kB / 0.5293 GB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.985e-05/0.5009, allocations: 7.062 kB / 0.5294 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.5009, allocations: 1.969 kB / 0.5294 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.501, allocations: 4 kB / 0.5294 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.501, allocations: 1.844 kB / 0.5294 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001442/0.5011, allocations: 157.4 kB / 0.5295 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.5011, allocations: 2.031 kB / 0.5295 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.349e-05/0.5011, allocations: 3.438 kB / 0.5295 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.5012, allocations: 1.922 kB / 0.5295 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.5012, allocations: 4.453 kB / 0.5295 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.5012, allocations: 3.953 kB / 0.5295 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.5012, allocations: 1.281 kB / 0.5295 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001931/0.5014, allocations: 205.8 kB / 0.5297 GB, free: 14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.446e-05/0.5014, allocations: 85.95 kB / 0.5298 GB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.5015, allocations: 10.11 kB / 0.5298 GB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.708e-05/0.5015, allocations: 1.344 kB / 0.5298 GB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.085e-05/0.5016, allocations: 8.125 kB / 0.5298 GB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.5016, allocations: 7.703 kB / 0.5298 GB, free: 13.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.292e-05/0.5017, allocations: 96.84 kB / 0.5299 GB, free: 13.81 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5017, allocations: 5 kB / 0.5299 GB, free: 13.81 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003096/0.502, allocations: 31.06 kB / 0.53 GB, free: 13.8 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.0007853/0.5028, allocations: 289.3 kB / 0.5302 GB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008368/0.5036, allocations: 156.1 kB / 0.5304 GB, free: 29.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5037, allocations: 0 / 0.5304 GB, free: 29.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.451e-05/0.5037, allocations: 120.8 kB / 0.5305 GB, free: 29.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.504, allocations: 27.08 kB / 0.5305 GB, free: 29.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.505, allocations: 342 kB / 0.5309 GB, free: 29.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/0.5053, allocations: 0.6999 MB / 0.5315 GB, free: 28.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.837e-05/0.5054, allocations: 10.25 kB / 0.5315 GB, free: 28.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.507e-05/0.5055, allocations: 18.98 kB / 0.5316 GB, free: 28.57 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5055, allocations: 0 / 0.5316 GB, free: 28.57 MB / 378.7 MB Notification: Performance of Templates: time 0.004956/0.5104, allocations: 1.521 MB / 0.533 GB, free: 28.36 MB / 378.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)