Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.MATTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternData.Examples.MATTest,fileNamePrefix="ExternData_ExternData_Examples_MATTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.MATTest,fileNamePrefix="ExternData_ExternData_Examples_MATTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 193.8 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.2146/0.2146, allocations: 2.937 MB / 293.3 MB, free: 3.152 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 55.91 kB / 354.8 MB, free: 3.648 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1371, allocations: 50.35 MB / 405.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.003415/0.1406, allocations: 1.478 MB / 406.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002473/0.1431, allocations: 1.261 MB / 407.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.1432, allocations: 0 / 407.9 MB, free: 14.5 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:141:3-163:14:writable] Warning: Pure function 'ExternData.MATFile' contains a call to impure function 'ExternData.Types.ExternMATFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0005468/0.1438, allocations: 35.84 kB / 407.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001917/0.144, allocations: 31.84 kB / 407.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004472/0.1444, allocations: 79.8 kB / 408 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002036/0.1446, allocations: 67.81 kB / 408.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.927e-05/0.1447, allocations: 4.219 kB / 408.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.1448, allocations: 23.92 kB / 408.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002665/0.1451, allocations: 19.92 kB / 408.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.218e-05/0.1451, allocations: 7.938 kB / 408.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002585/0.1454, allocations: 99.91 kB / 408.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.72e-05/0.1455, allocations: 11.94 kB / 408.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.425e-05/0.1456, allocations: 39.84 kB / 408.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004014/0.146, allocations: 127.6 kB / 408.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.146, allocations: 0 / 408.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.146, allocations: 3.938 kB / 408.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.1461, allocations: 0 / 408.4 MB, free: 13.95 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0008209/0.1469, allocations: 420.9 kB / 408.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.1469, allocations: 11.89 kB / 408.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.331e-05/0.147, allocations: 30.75 kB / 408.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.068e-05/0.147, allocations: 8.844 kB / 408.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002323/0.1473, allocations: 208.1 kB / 409.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.1473, allocations: 384 / 409.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/0.1473, allocations: 4.375 kB / 409.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001546/0.1475, allocations: 69.73 kB / 409.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.1475, allocations: 0 / 409.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.1475, allocations: 4 kB / 409.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1475, allocations: 0 / 409.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.293e-05/0.1476, allocations: 31.98 kB / 409.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001947/0.1478, allocations: 177.6 kB / 409.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.121e-05/0.1479, allocations: 54.58 kB / 409.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.77e-05/0.148, allocations: 40.89 kB / 409.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.049e-05/0.148, allocations: 0 / 409.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002274/0.1482, allocations: 117 kB / 409.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.333e-06/0.1482, allocations: 0 / 409.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003668/0.1486, allocations: 187.2 kB / 409.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.132e-05/0.1487, allocations: 85.11 kB / 409.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.1489, allocations: 145.7 kB / 410 MB, free: 12.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.1489, allocations: 25.7 kB / 410 MB, free: 12.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.149, allocations: 96.28 kB / 410.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.503e-05/0.1491, allocations: 15.8 kB / 410.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.435e-05/0.1491, allocations: 21.7 kB / 410.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1493, allocations: 318.8 kB / 410.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.167e-05/0.1493, allocations: 31.92 kB / 410.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.37e-05/0.1494, allocations: 27.98 kB / 410.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001403/0.1495, allocations: 124.3 kB / 410.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1495, allocations: 0 / 410.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002693/0.1498, allocations: 167.1 kB / 410.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.202e-05/0.1499, allocations: 33.7 kB / 410.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.1499, allocations: 0 / 410.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.347e-05/0.1499, allocations: 4 kB / 410.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.663e-05/0.15, allocations: 8 kB / 410.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.15, allocations: 3.938 kB / 410.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.083e-05/0.1501, allocations: 15.83 kB / 410.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.1501, allocations: 0 / 410.8 MB, free: 11.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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.0001748/0.1503, allocations: 155.5 kB / 411 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.776e-05/0.1504, allocations: 15.84 kB / 411 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.34e-05/0.1504, allocations: 8.375 kB / 411 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.1504, allocations: 4 kB / 411 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.1504, allocations: 0 / 411 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-06/0.1504, allocations: 0 / 411 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002114/0.1507, allocations: 181.6 kB / 411.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.1507, allocations: 7.938 kB / 411.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.402e-05/0.1507, allocations: 0 / 411.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.1507, allocations: 4 kB / 411.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.1507, allocations: 8 kB / 411.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1507, allocations: 240 / 411.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.1508, allocations: 3.938 kB / 411.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002832/0.151, allocations: 210.7 kB / 411.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.059e-05/0.1511, allocations: 92.94 kB / 411.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.735e-05/0.1512, allocations: 4 kB / 411.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.788e-05/0.1512, allocations: 8 kB / 411.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.108e-05/0.1513, allocations: 11.98 kB / 411.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.1513, allocations: 4 kB / 411.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.922e-05/0.1514, allocations: 109.5 kB / 411.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1514, allocations: 0 / 411.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002843/0.1517, allocations: 43.98 kB / 411.7 MB, free: 10.27 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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.001307/0.153, allocations: 0.921 MB / 412.6 MB, free: 9.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002733/0.1533, allocations: 163.4 kB / 412.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1533, allocations: 4 kB / 412.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.1534, allocations: 119.3 kB / 412.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002145/0.1536, allocations: 12 kB / 412.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002219/0.1559, allocations: 1.639 MB / 414.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003373/0.1562, allocations: 0.7039 MB / 415.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.805e-05/0.1563, allocations: 12.12 kB / 415.3 MB, free: 6.602 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.018e-05/0.1564, allocations: 27.42 kB / 415.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1564, allocations: 0 / 415.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03978/0.1961, allocations: 2.88 MB / 418.2 MB, free: 3.75 MB / 350.1 MB Error: Error building simulator. Build log: cmd: cd 'ExternData_ExternData_Examples_MATTest.fmutmp/sources/' && mkdir build_cmake_dynamic && cd build_cmake_dynamic && "cmake" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER='clang' -DCMAKE_CXX_COMPILER='clang++ -std=c++17' .. && "cmake" --build . --parallel -j1 --target install && cd .. && rm -rf build_cmake_dynamic -- 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/OpenModelica/OMCompiler/build/bin/../include/omc/c/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/ExternData_ExternData.Examples.MATTest/ExternData_ExternData_Examples_MATTest.fmutmp/sources/../binaries/linux64 -- Linking /home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/Resources/Library/linux64/libED_MATFile.a -- Linking /home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/Resources/Library/linux64/libhdf5.a -- Linking /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libzlib.a -- Linking d-NOTFOUND -- CVODE: Not linked -- Not using FMI2_FUNCTION_PREFIX -- 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: d linked by target "ExternData_ExternData_Examples_MATTest" in directory /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ExternData_ExternData.Examples.MATTest/ExternData_ExternData_Examples_MATTest.fmutmp/sources -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_CXX_COMPILER CMake Generate step failed. Build files cannot be regenerated correctly.