Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.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.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") 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.001394, allocations: 173.7 kB / 16.12 MB, free: 5.664 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.343/1.343, allocations: 225.7 MB / 242.6 MB, free: 8.453 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.0007295/0.0007297, allocations: 90.52 kB / 293.8 MB, free: 9.492 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.05465/0.05465, allocations: 12.23 MB / 357.1 MB, free: 10.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003348/0.0003346, allocations: 11.98 kB / 421.2 MB, free: 52.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08577/0.08612, allocations: 53.36 MB / 474.6 MB, free: 15.04 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.00286/0.08901, allocations: 2.345 MB / 476.9 MB, free: 12.66 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004412/0.08948, allocations: 295.1 kB / 477.2 MB, free: 12.37 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.373e-05/0.08957, allocations: 7.938 kB / 477.2 MB, free: 12.36 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002276/0.08981, allocations: 43.72 kB / 477.2 MB, free: 12.32 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.483e-05/0.08988, allocations: 15.84 kB / 477.3 MB, free: 12.3 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001983/0.09009, allocations: 75.81 kB / 477.3 MB, free: 12.23 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001637/0.09026, allocations: 140.1 kB / 477.5 MB, free: 12.09 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.09044, allocations: 77.52 kB / 477.5 MB, free: 12.02 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.244e-05/0.09051, allocations: 47.72 kB / 477.6 MB, free: 11.97 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.232e-05/0.0906, allocations: 43.72 kB / 477.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.09062, allocations: 0 / 477.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.143e-05/0.09069, allocations: 23.97 kB / 477.7 MB, free: 11.9 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.315e-05/0.09076, allocations: 35.84 kB / 477.7 MB, free: 11.87 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.81e-05/0.09085, allocations: 85.27 kB / 477.8 MB, free: 11.78 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002263/0.09108, allocations: 179.6 kB / 477.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.09109, allocations: 0 / 477.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.09111, allocations: 7.938 kB / 478 MB, free: 11.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.09112, allocations: 0 / 478 MB, free: 11.59 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005308/0.09165, allocations: 438.9 kB / 478.4 MB, free: 11.11 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.0917, allocations: 8.031 kB / 478.4 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.103e-05/0.09174, allocations: 24.66 kB / 478.4 MB, free: 11.08 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002091/0.09196, allocations: 228 kB / 478.6 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.09199, allocations: 8.375 kB / 478.6 MB, free: 10.81 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.097e-05/0.09201, allocations: 16.31 kB / 478.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/0.09229, allocations: 188.7 kB / 478.8 MB, free: 10.6 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.0923, allocations: 192 / 478.8 MB, free: 10.6 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.09233, allocations: 11.94 kB / 478.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.09234, allocations: 4 kB / 478.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001732/0.09252, allocations: 112.2 kB / 479 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000605/0.09313, allocations: 485.4 kB / 479.4 MB, free: 9.945 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.09331, allocations: 125.1 kB / 479.6 MB, free: 9.805 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.103e-05/0.09341, allocations: 77.69 kB / 479.6 MB, free: 9.723 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.779e-05/0.09344, allocations: 0 / 479.6 MB, free: 9.723 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002381/0.09369, allocations: 133 kB / 479.8 MB, free: 9.574 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.212e-06/0.0937, allocations: 0 / 479.8 MB, free: 9.574 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003581/0.09406, allocations: 245.3 kB / 480 MB, free: 9.328 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.197e-05/0.09414, allocations: 93.05 kB / 480.1 MB, free: 9.219 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.09427, allocations: 147.2 kB / 480.2 MB, free: 9.066 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.09431, allocations: 41.7 kB / 480.3 MB, free: 9.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.165e-05/0.09439, allocations: 128.6 kB / 480.4 MB, free: 8.887 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.92e-05/0.09445, allocations: 59.27 kB / 480.5 MB, free: 8.828 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.035e-05/0.09446, allocations: 4 kB / 480.5 MB, free: 8.824 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.09459, allocations: 338.8 kB / 480.8 MB, free: 8.484 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.0947, allocations: 72.23 kB / 480.9 MB, free: 8.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001589/0.09486, allocations: 159.7 kB / 481 MB, free: 8.215 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002701/0.09514, allocations: 243 kB / 481.3 MB, free: 7.938 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.09515, allocations: 4 kB / 481.3 MB, free: 7.934 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000364/0.09552, allocations: 269.2 kB / 481.5 MB, free: 7.664 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.09555, allocations: 12.19 kB / 481.5 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.09556, allocations: 4 kB / 481.6 MB, free: 7.648 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/0.0956, allocations: 4 kB / 481.6 MB, free: 7.645 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.09572, allocations: 35.86 kB / 481.6 MB, free: 7.609 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.09574, allocations: 4 kB / 481.6 MB, free: 7.605 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.84e-05/0.09582, allocations: 24.03 kB / 481.6 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.77e-05/0.09585, allocations: 12 kB / 481.6 MB, free: 7.57 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[7],keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.keySpace,$PRE.keyboardInput.KeyCode[6],keyboardInput.KeyCode[6],keyboardInput.keyReturn,$PRE.keyboardInput.KeyCode[5],keyboardInput.KeyCode[5],keyboardInput.keyLeft,$PRE.keyboardInput.KeyCode[4],keyboardInput.KeyCode[4],keyboardInput.keyRight,$PRE.keyboardInput.KeyCode[3],keyboardInput.KeyCode[3],keyboardInput.keyDown,$PRE.keyboardInput.KeyCode[2],keyboardInput.KeyCode[2],keyboardInput.keyUp,$PRE.keyboardInput.KeyCode[1],keyboardInput.KeyCode[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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.0001474/0.096, allocations: 177.7 kB / 481.8 MB, free: 7.391 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.738e-05/0.09602, allocations: 11.81 kB / 481.8 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.061e-05/0.09608, allocations: 17.19 kB / 481.8 MB, free: 7.359 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.09609, allocations: 7.922 kB / 481.8 MB, free: 7.352 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.0961, allocations: 4 kB / 481.8 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.09611, allocations: 288 / 481.8 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001953/0.09631, allocations: 245.4 kB / 482.1 MB, free: 7.059 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.09632, allocations: 3.984 kB / 482.1 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.695e-05/0.09635, allocations: 7.938 kB / 482.1 MB, free: 7.047 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.09636, allocations: 3.984 kB / 482.1 MB, free: 7.043 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.09638, allocations: 8 kB / 482.1 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.09639, allocations: 0 / 482.1 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.0964, allocations: 0 / 482.1 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000239/0.09664, allocations: 231.5 kB / 482.3 MB, free: 6.789 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.066e-05/0.09669, allocations: 85.02 kB / 482.4 MB, free: 6.688 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/0.09671, allocations: 4 kB / 482.4 MB, free: 6.684 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.503e-05/0.09674, allocations: 0 / 482.4 MB, free: 6.684 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.785e-05/0.0968, allocations: 19.98 kB / 482.4 MB, free: 6.664 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-06/0.09681, allocations: 7.984 kB / 482.4 MB, free: 6.656 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.249e-05/0.09689, allocations: 107.2 kB / 482.6 MB, free: 6.551 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0969, allocations: 0 / 482.6 MB, free: 6.551 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002322/0.09713, allocations: 39.84 kB / 482.6 MB, free: 6.512 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: 17 ($whenCondition1,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: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 1 * 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.0004671/0.09761, allocations: 241.5 kB / 482.8 MB, free: 6.324 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002917/0.09792, allocations: 205.5 kB / 483 MB, free: 6.117 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.09793, allocations: 3.938 kB / 483 MB, free: 6.113 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.96e-05/0.09803, allocations: 105.6 kB / 483.1 MB, free: 6.004 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001452/0.09819, allocations: 5.891 kB / 483.1 MB, free: 6 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005484/0.09875, allocations: 418.4 kB / 483.5 MB, free: 5.566 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.09902, allocations: 0.7441 MB / 484.3 MB, free: 4.797 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.636e-05/0.09909, allocations: 17.55 kB / 484.3 MB, free: 4.781 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.847e-05/0.09912, allocations: 19.44 kB / 484.3 MB, free: 4.762 MB / 314.7 MB Notification: Performance of SimCode: time 4.11e-07/0.09913, allocations: 0 / 484.3 MB, free: 4.762 MB / 314.7 MB Notification: Performance of Templates: time 0.003606/0.1027, allocations: 1.289 MB / 485.6 MB, free: 3.477 MB / 314.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1)