Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 181.9 kB / 16.13 MB, free: 5.559 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.196/1.196, allocations: 225.7 MB / 242.6 MB, free: 8.508 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.0007028/0.0007028, allocations: 104.6 kB / 293.8 MB, free: 9.504 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.05083/0.05083, allocations: 12.24 MB / 357.1 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002708/0.0002708, allocations: 12 kB / 421.2 MB, free: 52.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.072/0.07229, allocations: 53.35 MB / 474.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002384/0.0747, allocations: 2.002 MB / 476.6 MB, free: 13.02 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003983/0.07511, allocations: 426.9 kB / 477 MB, free: 12.55 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.177e-05/0.07518, allocations: 4 kB / 477 MB, free: 12.54 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001289/0.07531, allocations: 19.88 kB / 477 MB, free: 12.52 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.07543, allocations: 27.88 kB / 477 MB, free: 12.5 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001584/0.0756, allocations: 39.95 kB / 477.1 MB, free: 12.46 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001021/0.07571, allocations: 75.77 kB / 477.1 MB, free: 12.38 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.219e-05/0.07581, allocations: 24.2 kB / 477.2 MB, free: 12.36 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.335e-05/0.07587, allocations: 31.78 kB / 477.2 MB, free: 12.32 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.733e-05/0.07592, allocations: 27.86 kB / 477.2 MB, free: 12.3 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.32e-05/0.07594, allocations: 0 / 477.2 MB, free: 12.3 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001455/0.07609, allocations: 127.9 kB / 477.3 MB, free: 12.17 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 2.112e-05/0.07612, allocations: 15.92 kB / 477.4 MB, free: 12.16 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 6e-05/0.07619, allocations: 57.5 kB / 477.4 MB, free: 12.09 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001903/0.07638, allocations: 127.6 kB / 477.5 MB, free: 11.97 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.0764, allocations: 0 / 477.5 MB, free: 11.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.0764, allocations: 0 / 477.5 MB, free: 11.97 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.276e-06/0.07641, allocations: 7.938 kB / 477.5 MB, free: 11.96 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.000403/0.07682, allocations: 438.4 kB / 478 MB, free: 11.47 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.032e-05/0.07686, allocations: 8.031 kB / 478 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.064e-05/0.07689, allocations: 8.844 kB / 478 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001949/0.0771, allocations: 196.1 kB / 478.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.07712, allocations: 12.36 kB / 478.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.639e-05/0.07714, allocations: 4.375 kB / 478.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002704/0.07742, allocations: 153.5 kB / 478.3 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.07743, allocations: 192 / 478.3 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.07745, allocations: 7.938 kB / 478.4 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.417e-06/0.07746, allocations: 0 / 478.4 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.841e-05/0.07753, allocations: 27.98 kB / 478.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003219/0.07786, allocations: 301.6 kB / 478.7 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001689/0.07804, allocations: 154.3 kB / 478.8 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.005e-05/0.07812, allocations: 33.73 kB / 478.9 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.07815, allocations: 8.031 kB / 478.9 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.07818, allocations: 42.5 kB / 478.9 MB, free: 10.38 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.07819, allocations: 0 / 478.9 MB, free: 10.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002832/0.07847, allocations: 160.9 kB / 479.1 MB, free: 10.2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/0.07855, allocations: 132.5 kB / 479.2 MB, free: 10.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.07866, allocations: 142 kB / 479.3 MB, free: 9.887 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.07868, allocations: 25.7 kB / 479.4 MB, free: 9.855 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.638e-05/0.07873, allocations: 96.12 kB / 479.5 MB, free: 9.758 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.099e-05/0.07876, allocations: 7.938 kB / 479.5 MB, free: 9.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.596e-06/0.07877, allocations: 8 kB / 479.5 MB, free: 9.742 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.07888, allocations: 318.8 kB / 479.8 MB, free: 9.422 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.509e-05/0.07892, allocations: 12 kB / 479.8 MB, free: 9.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.149e-05/0.07898, allocations: 57.94 kB / 479.9 MB, free: 9.332 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.07911, allocations: 180.6 kB / 480 MB, free: 9.109 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.07912, allocations: 4 kB / 480 MB, free: 9.105 MB / 314.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001756/0.0793, allocations: 157 kB / 480.2 MB, free: 8.934 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.831e-05/0.07935, allocations: 67.33 kB / 480.3 MB, free: 8.855 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.07936, allocations: 0 / 480.3 MB, free: 8.855 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.07937, allocations: 4 kB / 480.3 MB, free: 8.852 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.817e-05/0.07942, allocations: 7.938 kB / 480.3 MB, free: 8.844 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.07943, allocations: 4 kB / 480.3 MB, free: 8.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.188e-05/0.07947, allocations: 15.84 kB / 480.3 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.07949, allocations: 4 kB / 480.3 MB, free: 8.82 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.0001073/0.0796, allocations: 185.4 kB / 480.5 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.963e-05/0.07971, allocations: 65.53 kB / 480.5 MB, free: 8.547 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.374e-05/0.07975, allocations: 8.312 kB / 480.5 MB, free: 8.535 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.07976, allocations: 4 kB / 480.5 MB, free: 8.531 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.07977, allocations: 0 / 480.5 MB, free: 8.531 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.07977, allocations: 0 / 480.5 MB, free: 8.531 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/0.07993, allocations: 185.6 kB / 480.7 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.07994, allocations: 0 / 480.7 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.245e-05/0.07997, allocations: 4 kB / 480.7 MB, free: 8.297 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.07997, allocations: 0 / 480.7 MB, free: 8.297 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.07999, allocations: 4 kB / 480.7 MB, free: 8.293 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.08, allocations: 8.297 kB / 480.7 MB, free: 8.285 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.08, allocations: 0 / 480.7 MB, free: 8.285 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002271/0.08024, allocations: 263.6 kB / 481 MB, free: 7.996 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.163e-05/0.08029, allocations: 85 kB / 481.1 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.08032, allocations: 8 kB / 481.1 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.702e-05/0.08037, allocations: 0 / 481.1 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.066e-05/0.0804, allocations: 8 kB / 481.1 MB, free: 7.879 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.08042, allocations: 4 kB / 481.1 MB, free: 7.875 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.969e-05/0.0805, allocations: 107.2 kB / 481.2 MB, free: 7.77 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.0805, allocations: 0 / 481.2 MB, free: 7.77 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002437/0.08075, allocations: 24 kB / 481.2 MB, free: 7.746 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.0005688/0.08133, allocations: 346.1 kB / 481.6 MB, free: 7.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002055/0.08154, allocations: 170.7 kB / 481.7 MB, free: 7.289 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.08155, allocations: 0 / 481.7 MB, free: 7.289 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.443e-05/0.08164, allocations: 122.8 kB / 481.9 MB, free: 7.145 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.08191, allocations: 31.95 kB / 481.9 MB, free: 7.113 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000396/0.08232, allocations: 214.4 kB / 482.1 MB, free: 6.875 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.08257, allocations: 0.7004 MB / 482.8 MB, free: 6.148 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.829e-05/0.08266, allocations: 16.59 kB / 482.8 MB, free: 6.133 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.883e-05/0.08268, allocations: 11.44 kB / 482.8 MB, free: 6.121 MB / 314.7 MB Notification: Performance of SimCode: time 2e-07/0.08269, allocations: 0 / 482.8 MB, free: 6.121 MB / 314.7 MB Notification: Performance of Templates: time 0.003586/0.08628, allocations: 1.625 MB / 484.4 MB, free: 4.504 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)