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.001356/0.001356, allocations: 108.3 kB / 19.75 MB, free: 1.879 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.001566/0.001566, allocations: 217 kB / 23.03 MB, free: 5.016 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.525/1.525, allocations: 230.6 MB / 256.8 MB, free: 7.957 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.0651/0.0651, allocations: 12.22 MB / 325.4 MB, free: 7.059 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.002073/0.002073, allocations: 63.91 kB / 453.3 MB, free: 8.848 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1407, allocations: 56.4 MB / 0.4977 GB, free: 360 kB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.005679/0.1464, allocations: 2.376 MB / 0.5001 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005036/0.1469, allocations: 159.5 kB / 0.5002 GB, free: 13.81 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.147, allocations: 7.938 kB / 0.5002 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001942/0.1472, allocations: 19.86 kB / 0.5002 GB, free: 13.78 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003516/0.1475, allocations: 59.81 kB / 0.5003 GB, free: 13.72 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002546/0.1478, allocations: 51.83 kB / 0.5003 GB, free: 13.67 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001935/0.148, allocations: 79.77 kB / 0.5004 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.1481, allocations: 8.234 kB / 0.5004 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.703e-05/0.1482, allocations: 35.84 kB / 0.5005 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.635e-05/0.1483, allocations: 31.84 kB / 0.5005 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.1483, allocations: 8 kB / 0.5005 GB, free: 13.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002457/0.1485, allocations: 131.9 kB / 0.5006 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.591e-05/0.1486, allocations: 19.86 kB / 0.5006 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.776e-05/0.1486, allocations: 27.86 kB / 0.5007 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003137/0.1489, allocations: 139.8 kB / 0.5008 GB, free: 13.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1489, allocations: 4 kB / 0.5008 GB, free: 13.19 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.149, allocations: 0 / 0.5008 GB, free: 13.19 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.832e-06/0.149, allocations: 0 / 0.5008 GB, free: 13.19 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.0006785/0.1496, allocations: 373.2 kB / 0.5012 GB, free: 12.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.1497, allocations: 12.03 kB / 0.5012 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.268e-05/0.1497, allocations: 34.75 kB / 0.5012 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.609e-05/0.1498, allocations: 12.89 kB / 0.5012 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003896/0.1502, allocations: 148.5 kB / 0.5014 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.1502, allocations: 4.375 kB / 0.5014 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.267e-05/0.1502, allocations: 12.36 kB / 0.5014 GB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004495/0.1507, allocations: 211.3 kB / 0.5016 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.1507, allocations: 3.938 kB / 0.5016 GB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.1507, allocations: 4 kB / 0.5016 GB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.1507, allocations: 4 kB / 0.5016 GB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000121/0.1508, allocations: 79.39 kB / 0.5017 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004521/0.1513, allocations: 260.7 kB / 0.5019 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/0.1515, allocations: 128.6 kB / 0.502 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.1516, allocations: 85.19 kB / 0.5021 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.225e-05/0.1517, allocations: 4 kB / 0.5021 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.633e-05/0.1517, allocations: 38.5 kB / 0.5022 GB, free: 11.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.1517, allocations: 0 / 0.5022 GB, free: 11.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005363/0.1523, allocations: 279.7 kB / 0.5024 GB, free: 11.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.1524, allocations: 132.5 kB / 0.5025 GB, free: 11.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.1525, allocations: 138 kB / 0.5027 GB, free: 10.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.1525, allocations: 25.7 kB / 0.5027 GB, free: 10.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.073e-05/0.1526, allocations: 92.14 kB / 0.5028 GB, free: 10.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.26e-05/0.1526, allocations: 23.88 kB / 0.5028 GB, free: 10.81 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.251e-05/0.1527, allocations: 25.7 kB / 0.5028 GB, free: 10.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1529, allocations: 326.8 kB / 0.5031 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.279e-05/0.1529, allocations: 63.41 kB / 0.5032 GB, free: 10.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.153, allocations: 113.4 kB / 0.5033 GB, free: 10.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.1532, allocations: 192.7 kB / 0.5035 GB, free: 10 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1532, allocations: 4 kB / 0.5035 GB, free: 9.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002549/0.1535, allocations: 208.3 kB / 0.5037 GB, free: 9.762 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.322e-05/0.1535, allocations: 59.41 kB / 0.5038 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.1535, allocations: 256 / 0.5038 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.1536, allocations: 4 kB / 0.5038 GB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.59e-05/0.1536, allocations: 16.02 kB / 0.5038 GB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.1536, allocations: 7.938 kB / 0.5038 GB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.309e-05/0.1537, allocations: 8.219 kB / 0.5038 GB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/0.1537, allocations: 8 kB / 0.5038 GB, free: 9.648 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.000153/0.1538, allocations: 177.1 kB / 0.504 GB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.154, allocations: 65.58 kB / 0.504 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.651e-05/0.154, allocations: 12.39 kB / 0.504 GB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.154, allocations: 4.141 kB / 0.5041 GB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.154, allocations: 0 / 0.5041 GB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.154, allocations: 3.984 kB / 0.5041 GB, free: 9.355 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002045/0.1542, allocations: 156.6 kB / 0.5042 GB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1542, allocations: 0 / 0.5042 GB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.023e-05/0.1542, allocations: 4 kB / 0.5042 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.1543, allocations: 8 kB / 0.5042 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.1543, allocations: 0 / 0.5042 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1543, allocations: 0 / 0.5042 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1543, allocations: 7.938 kB / 0.5042 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003533/0.1546, allocations: 315 kB / 0.5045 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.563e-05/0.1546, allocations: 7.938 kB / 0.5045 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.772e-05/0.1547, allocations: 8 kB / 0.5045 GB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.378e-05/0.1547, allocations: 4 kB / 0.5045 GB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.904e-05/0.1547, allocations: 0 / 0.5045 GB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.1548, allocations: 4 kB / 0.5045 GB, free: 8.766 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.833e-05/0.1548, allocations: 102.5 kB / 0.5046 GB, free: 8.668 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1548, allocations: 4 kB / 0.5046 GB, free: 8.664 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002742/0.1551, allocations: 31.98 kB / 0.5047 GB, free: 8.633 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.001485/0.1566, allocations: 1.054 MB / 0.5057 GB, free: 7.609 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003344/0.1569, allocations: 273.5 kB / 0.506 GB, free: 7.293 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1569, allocations: 0 / 0.506 GB, free: 7.293 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.1571, allocations: 178.6 kB / 0.5061 GB, free: 7.082 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003105/0.1574, allocations: 33.91 kB / 0.5062 GB, free: 7.055 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001959/0.1593, allocations: 1.828 MB / 0.508 GB, free: 5.031 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001242/0.1595, allocations: 87.5 kB / 0.508 GB, free: 4.926 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.507e-05/0.1596, allocations: 16.59 kB / 0.5081 GB, free: 4.906 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.937e-05/0.1596, allocations: 23.44 kB / 0.5081 GB, free: 4.887 MB / 382.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1596, allocations: 0 / 0.5081 GB, free: 4.887 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0349/0.1945, allocations: 3.751 MB / 0.5117 GB, free: 1.191 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.531103985849768] Failed to read output from testmodel.py, exit status != 0: 0.9908589171245694 1.005280051 0.8528187389999999 Calling exit ...