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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 118.2 kB / 19.74 MB, free: 2.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001824/0.001824, allocations: 216.7 kB / 23.05 MB, free: 4.996 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.548/1.548, allocations: 230.6 MB / 256.8 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo): time 0.06687/0.06687, allocations: 12.22 MB / 325.5 MB, free: 7.285 MB / 254.1 MB " [Timeout remaining time 180] Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002048/0.002048, allocations: 67.89 kB / 453.4 MB, free: 9.051 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1441, allocations: 56.4 MB / 0.4978 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.005471/0.1496, allocations: 2.391 MB / 0.5001 GB, free: 14.15 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004571/0.1501, allocations: 167.5 kB / 0.5003 GB, free: 13.99 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.1502, allocations: 3.938 kB / 0.5003 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001836/0.1504, allocations: 31.78 kB / 0.5003 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001986/0.1506, allocations: 35.84 kB / 0.5004 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002431/0.1508, allocations: 55.88 kB / 0.5004 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001932/0.151, allocations: 71.84 kB / 0.5005 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.1511, allocations: 16.2 kB / 0.5005 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.507e-05/0.1512, allocations: 35.86 kB / 0.5005 GB, free: 13.74 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.138e-05/0.1513, allocations: 31.8 kB / 0.5006 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.581e-05/0.1513, allocations: 8 kB / 0.5006 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002355/0.1515, allocations: 139.9 kB / 0.5007 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.868e-05/0.1515, allocations: 11.98 kB / 0.5007 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.774e-05/0.1516, allocations: 39.69 kB / 0.5008 GB, free: 13.51 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003258/0.1519, allocations: 147.8 kB / 0.5009 GB, free: 13.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1519, allocations: 4 kB / 0.5009 GB, free: 13.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1519, allocations: 0 / 0.5009 GB, free: 13.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.152, allocations: 0 / 0.5009 GB, free: 13.36 MB / 382.1 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.0006436/0.1526, allocations: 361.3 kB / 0.5013 GB, free: 12.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.1526, allocations: 12.03 kB / 0.5013 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.896e-05/0.1527, allocations: 38.73 kB / 0.5013 GB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.179e-05/0.1527, allocations: 8.891 kB / 0.5013 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003354/0.1531, allocations: 142.3 kB / 0.5014 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.1531, allocations: 12.31 kB / 0.5015 GB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.246e-05/0.1531, allocations: 8.375 kB / 0.5015 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003686/0.1535, allocations: 153.5 kB / 0.5016 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.1535, allocations: 3.938 kB / 0.5016 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.1535, allocations: 4 kB / 0.5016 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.1535, allocations: 4 kB / 0.5016 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.926e-05/0.1536, allocations: 31.98 kB / 0.5017 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004399/0.1541, allocations: 256.8 kB / 0.5019 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.1543, allocations: 81.12 kB / 0.502 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.626e-05/0.1543, allocations: 33.75 kB / 0.502 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.024e-05/0.1544, allocations: 4 kB / 0.502 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.691e-05/0.1544, allocations: 38.53 kB / 0.5021 GB, free: 12.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.303e-06/0.1544, allocations: 0 / 0.5021 GB, free: 12.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004011/0.1548, allocations: 161 kB / 0.5022 GB, free: 11.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/0.155, allocations: 140.5 kB / 0.5023 GB, free: 11.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001591/0.1551, allocations: 134.1 kB / 0.5025 GB, free: 11.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/0.1551, allocations: 29.73 kB / 0.5025 GB, free: 11.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.041e-05/0.1552, allocations: 96.12 kB / 0.5026 GB, free: 11.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.243e-05/0.1552, allocations: 19.83 kB / 0.5026 GB, free: 11.38 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.359e-05/0.1553, allocations: 25.72 kB / 0.5026 GB, free: 11.35 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.1555, allocations: 318.8 kB / 0.5029 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.837e-05/0.1555, allocations: 12 kB / 0.5029 GB, free: 11.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.83e-05/0.1556, allocations: 66 kB / 0.503 GB, free: 10.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001992/0.1558, allocations: 188.8 kB / 0.5032 GB, free: 10.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1558, allocations: 0 / 0.5032 GB, free: 10.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002643/0.1561, allocations: 156.9 kB / 0.5033 GB, free: 10.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.059e-05/0.1561, allocations: 59.41 kB / 0.5034 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.1561, allocations: 0 / 0.5034 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.1562, allocations: 4 kB / 0.5034 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.153e-05/0.1562, allocations: 11.92 kB / 0.5034 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.1562, allocations: 4.344 kB / 0.5034 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.443e-05/0.1563, allocations: 12.16 kB / 0.5034 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.151e-05/0.1563, allocations: 12 kB / 0.5034 GB, free: 10.41 MB / 382.1 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.0001776/0.1565, allocations: 183.3 kB / 0.5036 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.1566, allocations: 61.64 kB / 0.5037 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.227e-05/0.1566, allocations: 12.34 kB / 0.5037 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1567, allocations: 4 kB / 0.5037 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.1567, allocations: 0 / 0.5037 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.1567, allocations: 3.984 kB / 0.5037 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.1569, allocations: 160.5 kB / 0.5038 GB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.1569, allocations: 4 kB / 0.5038 GB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.07e-05/0.1569, allocations: 7.984 kB / 0.5039 GB, free: 9.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1569, allocations: 0 / 0.5039 GB, free: 9.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.1569, allocations: 4 kB / 0.5039 GB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1569, allocations: 0 / 0.5039 GB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1569, allocations: 0 / 0.5039 GB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003139/0.1572, allocations: 259.7 kB / 0.5041 GB, free: 9.621 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.945e-05/0.1573, allocations: 15.89 kB / 0.5041 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.1573, allocations: 0 / 0.5041 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.882e-05/0.1573, allocations: 8 kB / 0.5041 GB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.058e-05/0.1574, allocations: 0 / 0.5041 GB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.1574, allocations: 7.984 kB / 0.5041 GB, free: 9.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.683e-05/0.1575, allocations: 102.1 kB / 0.5042 GB, free: 9.492 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1575, allocations: 4 kB / 0.5042 GB, free: 9.488 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000304/0.1578, allocations: 24 kB / 0.5043 GB, free: 9.465 MB / 382.1 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.001509/0.1593, allocations: 0.9846 MB / 0.5052 GB, free: 8.516 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000305/0.1596, allocations: 166.7 kB / 0.5054 GB, free: 8.328 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1596, allocations: 4.375 kB / 0.5054 GB, free: 8.324 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.1597, allocations: 122.8 kB / 0.5055 GB, free: 8.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.16, allocations: 31.95 kB / 0.5055 GB, free: 8.148 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.162, allocations: 1.56 MB / 0.5071 GB, free: 6.457 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.1623, allocations: 0.6963 MB / 0.5077 GB, free: 5.734 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.885e-05/0.1624, allocations: 16.59 kB / 0.5078 GB, free: 5.719 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.543e-05/0.1625, allocations: 27.42 kB / 0.5078 GB, free: 5.691 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1625, allocations: 0 / 0.5078 GB, free: 5.691 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03369/0.1962, allocations: 3.327 MB / 0.511 GB, free: 2.438 MB / 382.1 MB Error: Error building simulator. Build log: cmd: cd '196.fmutmp/sources/' && mkdir build_cmake_static && cd build_cmake_static && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER='clang' .. && cmake --build . --parallel -j1 --target install && cd .. && rm -rf build_cmake_static -- The C compiler identification is Clang 14.0.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- FMI2 include directory: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey/196.fmutmp/sources/fmi -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Building for FMI platform linux64 -- Install directory: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey/196.fmutmp/sources/../binaries/linux64 -- Linking rt-NOTFOUND -- Linking /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Resources/Library/linux64/libWinmm.a -- Linking X11-NOTFOUND -- Linking /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Resources/Library/linux64/libUser32.a -- CVODE: Not linked -- Not using FMI2_FUNCTION_PREFIX -- Installing dynamic dependencies from list: rt-NOTFOUND;/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Resources/Library/linux64/libWinmm.a;X11-NOTFOUND;/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Resources/Library/linux64/libUser32.a -- Configuring done CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: X11 linked by target \"196\" in directory /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey/196.fmutmp/sources rt linked by target \"196\" in directory /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey/196.fmutmp/sources -- Generating done CMake Generate step failed. Build files cannot be regenerated correctly. " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.5474247680976987] Failed to read output from testmodel.py, exit status != 0: 0.642552908975631 0.88286001 0.727869042 Calling exit ...