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.001037/0.001037, allocations: 186.9 kB / 16.68 MB, free: 5.082 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.196/1.196, allocations: 222.9 MB / 240.3 MB, free: 11.02 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.000862/0.0008622, allocations: 117.7 kB / 290.6 MB, free: 10.94 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.05254/0.05254, allocations: 12.03 MB / 352.7 MB, free: 13.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001027, allocations: 59.14 kB / 415.8 MB, free: 53.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08321/0.08426, allocations: 52.33 MB / 468.2 MB, free: 1.566 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.003059/0.08735, allocations: 2.278 MB / 470.5 MB, free: 15.27 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003188/0.08769, allocations: 195.5 kB / 470.6 MB, free: 15.08 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.863e-05/0.08776, allocations: 4 kB / 470.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.0879, allocations: 15.94 kB / 470.7 MB, free: 15.06 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000116/0.08804, allocations: 31.88 kB / 470.7 MB, free: 15.03 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001723/0.08822, allocations: 39.89 kB / 470.7 MB, free: 14.99 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001002/0.08832, allocations: 71.78 kB / 470.8 MB, free: 14.92 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.342e-05/0.08842, allocations: 24.2 kB / 470.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.059e-05/0.08848, allocations: 31.86 kB / 470.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.095e-05/0.08854, allocations: 35.83 kB / 470.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.08856, allocations: 4 kB / 470.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001584/0.08873, allocations: 127.9 kB / 471 MB, free: 14.7 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 2.338e-05/0.08876, allocations: 15.88 kB / 471 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.684e-05/0.08881, allocations: 35.78 kB / 471.1 MB, free: 14.64 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002118/0.08903, allocations: 135.6 kB / 471.2 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.08904, allocations: 0 / 471.2 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.08905, allocations: 0 / 471.2 MB, free: 14.51 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.986e-06/0.08905, allocations: 4 kB / 471.2 MB, free: 14.51 MB / 314.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.0004373/0.0895, allocations: 439 kB / 471.6 MB, free: 14.02 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.08953, allocations: 8.031 kB / 471.6 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.175e-05/0.08958, allocations: 12.75 kB / 471.7 MB, free: 14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002067/0.08979, allocations: 200.2 kB / 471.9 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.08982, allocations: 12.38 kB / 471.9 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.33e-05/0.08984, allocations: 4.375 kB / 471.9 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002877/0.09013, allocations: 157.5 kB / 472 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.09015, allocations: 4.125 kB / 472 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.09017, allocations: 3.938 kB / 472 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.09018, allocations: 4 kB / 472 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.597e-05/0.09026, allocations: 27.94 kB / 472.1 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003419/0.09061, allocations: 297.6 kB / 472.4 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002043/0.09083, allocations: 154.2 kB / 472.5 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.376e-05/0.0909, allocations: 37.78 kB / 472.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.09092, allocations: 0 / 472.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.067e-05/0.09095, allocations: 34.56 kB / 472.6 MB, free: 12.92 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.09096, allocations: 4 kB / 472.6 MB, free: 12.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.000307/0.09127, allocations: 164.9 kB / 472.7 MB, free: 12.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.163e-05/0.09135, allocations: 140.5 kB / 472.9 MB, free: 12.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.09146, allocations: 135.6 kB / 473 MB, free: 12.42 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.09149, allocations: 29.7 kB / 473 MB, free: 12.39 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.912e-05/0.09154, allocations: 92.05 kB / 473.1 MB, free: 12.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.433e-05/0.09156, allocations: 15.83 kB / 473.1 MB, free: 12.28 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.142e-05/0.09161, allocations: 25.72 kB / 473.2 MB, free: 12.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.09172, allocations: 330.8 kB / 473.5 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.796e-05/0.09176, allocations: 12 kB / 473.5 MB, free: 11.9 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.548e-05/0.09182, allocations: 50 kB / 473.6 MB, free: 11.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001323/0.09196, allocations: 184.7 kB / 473.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.09197, allocations: 3.938 kB / 473.7 MB, free: 11.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001917/0.09217, allocations: 157.1 kB / 473.9 MB, free: 11.43 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.161e-05/0.09222, allocations: 63.41 kB / 474 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.09223, allocations: 0 / 474 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.09225, allocations: 4 kB / 474 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.308e-05/0.0923, allocations: 4 kB / 474 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.09231, allocations: 4 kB / 474 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.065e-05/0.09236, allocations: 11.94 kB / 474 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.09238, allocations: 12 kB / 474 MB, free: 11.32 MB / 314.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001098/0.09249, allocations: 173.2 kB / 474.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.805e-05/0.09259, allocations: 61.59 kB / 474.2 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.664e-05/0.09264, allocations: 16.3 kB / 474.2 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.09265, allocations: 4.312 kB / 474.2 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.09266, allocations: 0 / 474.2 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.09267, allocations: 0 / 474.2 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001678/0.09284, allocations: 193.5 kB / 474.4 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.09285, allocations: 0 / 474.4 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.722e-05/0.09288, allocations: 8.031 kB / 474.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.09289, allocations: 7.922 kB / 474.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.09291, allocations: 4 kB / 474.4 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.09291, allocations: 0 / 474.4 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.09293, allocations: 4 kB / 474.4 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005326/0.09347, allocations: 0.8335 MB / 475.3 MB, free: 9.871 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.42e-05/0.09352, allocations: 85.02 kB / 475.4 MB, free: 9.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.09355, allocations: 0 / 475.4 MB, free: 9.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.055e-05/0.09361, allocations: 4 kB / 475.4 MB, free: 9.766 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.156e-05/0.09365, allocations: 23.86 kB / 475.4 MB, free: 9.742 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.09366, allocations: 0 / 475.4 MB, free: 9.742 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.905e-05/0.09372, allocations: 105 kB / 475.5 MB, free: 9.641 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.09373, allocations: 0 / 475.5 MB, free: 9.641 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003548/0.09409, allocations: 28 kB / 475.5 MB, free: 9.613 MB / 314.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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005531/0.09465, allocations: 288.5 kB / 475.8 MB, free: 9.398 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00021/0.09487, allocations: 174.7 kB / 476 MB, free: 9.203 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.09488, allocations: 0 / 476 MB, free: 9.203 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.734e-05/0.09496, allocations: 126.8 kB / 476.1 MB, free: 9.055 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.09524, allocations: 27.27 kB / 476.1 MB, free: 9.031 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004793/0.09573, allocations: 335.9 kB / 476.5 MB, free: 8.664 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.09599, allocations: 0.7042 MB / 477.2 MB, free: 7.934 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.644e-05/0.09609, allocations: 16.64 kB / 477.2 MB, free: 7.918 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.996e-05/0.09613, allocations: 15.44 kB / 477.2 MB, free: 7.902 MB / 314.7 MB Notification: Performance of SimCode: time 2.21e-07/0.09613, allocations: 0 / 477.2 MB, free: 7.902 MB / 314.7 MB Notification: Performance of Templates: time 0.004046/0.1002, allocations: 1.68 MB / 478.9 MB, free: 6.234 MB / 314.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)