Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 182.3 kB / 16.13 MB, free: 5.516 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 225.7 MB / 242.6 MB, free: 8.5 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008362/0.0008363, allocations: 99 kB / 293.8 MB, free: 9.508 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo): time 0.05387/0.05387, allocations: 12.24 MB / 357.1 MB, free: 10.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003267/0.0003268, allocations: 8 kB / 421.2 MB, free: 52.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08743/0.08778, allocations: 53.36 MB / 474.6 MB, free: 15.04 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.002838/0.09066, allocations: 2.369 MB / 476.9 MB, free: 12.64 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005698/0.09124, allocations: 436.2 kB / 477.3 MB, free: 12.19 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.74e-05/0.09133, allocations: 11.88 kB / 477.4 MB, free: 12.18 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.09154, allocations: 35.72 kB / 477.4 MB, free: 12.14 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.09167, allocations: 35.88 kB / 477.4 MB, free: 12.11 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001845/0.09186, allocations: 83.78 kB / 477.5 MB, free: 12.03 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001536/0.09203, allocations: 144 kB / 477.7 MB, free: 11.89 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.09219, allocations: 69.53 kB / 477.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.637e-05/0.09226, allocations: 51.77 kB / 477.8 MB, free: 11.77 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.097e-05/0.09235, allocations: 51.7 kB / 477.8 MB, free: 11.72 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.664e-05/0.09237, allocations: 4 kB / 477.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001726/0.09255, allocations: 119.9 kB / 477.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.302e-05/0.09261, allocations: 35.83 kB / 478 MB, free: 11.56 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 6.567e-05/0.09268, allocations: 77.31 kB / 478.1 MB, free: 11.48 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002605/0.09295, allocations: 211.6 kB / 478.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.09297, allocations: 8 kB / 478.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.09297, allocations: 0 / 478.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.828e-06/0.09298, allocations: 0 / 478.3 MB, free: 11.27 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005031/0.09349, allocations: 422.6 kB / 478.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.09353, allocations: 11.97 kB / 478.7 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.278e-05/0.09358, allocations: 20.69 kB / 478.7 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.09382, allocations: 228.9 kB / 478.9 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.09385, allocations: 12.61 kB / 478.9 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.102e-05/0.09388, allocations: 12.38 kB / 479 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002524/0.09414, allocations: 153.6 kB / 479.1 MB, free: 10.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.09416, allocations: 4.125 kB / 479.1 MB, free: 10.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.09418, allocations: 11.94 kB / 479.1 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.09419, allocations: 4 kB / 479.1 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001482/0.09435, allocations: 80.19 kB / 479.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005898/0.09494, allocations: 473.6 kB / 479.7 MB, free: 9.711 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001204/0.09508, allocations: 77.12 kB / 479.7 MB, free: 9.617 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.615e-05/0.09515, allocations: 41.8 kB / 479.8 MB, free: 9.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.09518, allocations: 0 / 479.8 MB, free: 9.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001764/0.09536, allocations: 97.03 kB / 479.9 MB, free: 9.457 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.032e-06/0.09537, allocations: 0 / 479.9 MB, free: 9.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002616/0.09564, allocations: 129.4 kB / 480 MB, free: 9.324 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.0957, allocations: 81.05 kB / 480.1 MB, free: 9.227 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.09584, allocations: 160.7 kB / 480.2 MB, free: 9.062 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.512e-05/0.09586, allocations: 25.7 kB / 480.3 MB, free: 9.031 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.282e-05/0.09594, allocations: 136.1 kB / 480.4 MB, free: 8.891 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.442e-05/0.09597, allocations: 27.62 kB / 480.4 MB, free: 8.863 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.761e-06/0.09599, allocations: 0 / 480.4 MB, free: 8.863 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.09611, allocations: 326.8 kB / 480.7 MB, free: 8.535 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.476e-05/0.09617, allocations: 27.98 kB / 480.8 MB, free: 8.508 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.567e-05/0.09624, allocations: 59.36 kB / 480.8 MB, free: 8.438 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001187/0.09637, allocations: 83.36 kB / 480.9 MB, free: 8.344 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.09638, allocations: 0 / 480.9 MB, free: 8.344 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001733/0.09655, allocations: 117.5 kB / 481 MB, free: 8.223 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.09658, allocations: 7.984 kB / 481 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.09659, allocations: 0 / 481 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.09661, allocations: 4 kB / 481 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.233e-05/0.09668, allocations: 11.94 kB / 481.1 MB, free: 8.199 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.09669, allocations: 3.984 kB / 481.1 MB, free: 8.195 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.789e-05/0.09674, allocations: 7.906 kB / 481.1 MB, free: 8.188 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.09675, allocations: 16 kB / 481.1 MB, free: 8.172 MB / 314.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.09687, allocations: 137.4 kB / 481.2 MB, free: 8.031 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.019e-05/0.09689, allocations: 11.91 kB / 481.2 MB, free: 8.02 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.123e-05/0.09694, allocations: 16.7 kB / 481.2 MB, free: 8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.09695, allocations: 0 / 481.2 MB, free: 8 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.09696, allocations: 4.312 kB / 481.2 MB, free: 7.996 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.09697, allocations: 0 / 481.2 MB, free: 7.996 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.09716, allocations: 233.4 kB / 481.5 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.09717, allocations: 4 kB / 481.5 MB, free: 7.715 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.634e-05/0.09721, allocations: 19.86 kB / 481.5 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.09722, allocations: 0 / 481.5 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.09723, allocations: 0 / 481.5 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.09724, allocations: 0 / 481.5 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.09724, allocations: 4 kB / 481.5 MB, free: 7.691 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001761/0.09742, allocations: 133.8 kB / 481.6 MB, free: 7.539 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.999e-05/0.09748, allocations: 92.94 kB / 481.7 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.09751, allocations: 4 kB / 481.7 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.846e-05/0.09754, allocations: 4 kB / 481.7 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.933e-05/0.09759, allocations: 7.984 kB / 481.7 MB, free: 7.414 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.0976, allocations: 4 kB / 481.7 MB, free: 7.41 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.956e-05/0.09769, allocations: 115.2 kB / 481.9 MB, free: 7.297 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.0977, allocations: 0 / 481.9 MB, free: 7.297 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002285/0.09794, allocations: 43.84 kB / 481.9 MB, free: 7.254 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: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Number of clocked 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 (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.0004731/0.09842, allocations: 267.6 kB / 482.2 MB, free: 7.035 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001829/0.09861, allocations: 105.5 kB / 482.3 MB, free: 6.926 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.09862, allocations: 0 / 482.3 MB, free: 6.926 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.44e-05/0.0987, allocations: 61.62 kB / 482.3 MB, free: 6.859 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001462/0.09885, allocations: 11.95 kB / 482.3 MB, free: 6.848 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004772/0.09934, allocations: 341.5 kB / 482.7 MB, free: 6.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.09962, allocations: 0.7317 MB / 483.4 MB, free: 5.723 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.227e-05/0.09967, allocations: 8.547 kB / 483.4 MB, free: 5.715 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.392e-05/0.0997, allocations: 15.44 kB / 483.4 MB, free: 5.699 MB / 314.7 MB Notification: Performance of SimCode: time 2.51e-07/0.0997, allocations: 0 / 483.4 MB, free: 5.699 MB / 314.7 MB Notification: Performance of Templates: time 0.003678/0.1034, allocations: 1.367 MB / 484.8 MB, free: 4.336 MB / 314.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)