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.001097/0.001097, allocations: 108 kB / 15.61 MB, free: 152 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.00113/0.00113, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.39/1.39, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1454/0.1454, allocations: 2.931 MB / 293.3 MB, free: 3.223 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002252/0.002253, allocations: 67.83 kB / 354.8 MB, free: 3.652 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1165, allocations: 50.34 MB / 405.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.002677/0.1192, allocations: 1.48 MB / 406.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.1208, allocations: 1.265 MB / 407.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.213e-05/0.1208, allocations: 4 kB / 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.0002586/0.1211, allocations: 39.84 kB / 407.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.222e-05/0.1212, allocations: 23.86 kB / 407.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.1215, allocations: 83.77 kB / 408 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001079/0.1216, allocations: 59.8 kB / 408.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.786e-05/0.1216, allocations: 8.266 kB / 408.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.966e-05/0.1217, allocations: 15.94 kB / 408.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001431/0.1218, allocations: 31.84 kB / 408.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/0.1218, allocations: 4 kB / 408.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001581/0.122, allocations: 99.92 kB / 408.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.448e-05/0.1221, allocations: 23.84 kB / 408.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.793e-05/0.1221, allocations: 31.8 kB / 408.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002004/0.1224, allocations: 127.7 kB / 408.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1224, allocations: 0 / 408.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1224, allocations: 0 / 408.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.1224, allocations: 0 / 408.4 MB, free: 13.96 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.0005179/0.1229, allocations: 424.9 kB / 408.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.1229, allocations: 11.89 kB / 408.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.495e-05/0.123, allocations: 30.75 kB / 408.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.332e-05/0.123, allocations: 12.84 kB / 408.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/0.1232, allocations: 198.4 kB / 409.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.1233, allocations: 4.375 kB / 409.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/0.1233, allocations: 384 / 409.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001537/0.1234, allocations: 73.72 kB / 409.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.1235, allocations: 0 / 409.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.1235, allocations: 0 / 409.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.1235, allocations: 4 kB / 409.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.794e-05/0.1236, allocations: 31.98 kB / 409.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001763/0.1237, allocations: 173.6 kB / 409.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.826e-05/0.1238, allocations: 58.56 kB / 409.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.15e-05/0.1239, allocations: 40.89 kB / 409.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.777e-06/0.1239, allocations: 0 / 409.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001979/0.1241, allocations: 120.9 kB / 409.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.222e-06/0.1241, allocations: 0 / 409.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003303/0.1245, allocations: 191.4 kB / 409.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.1245, allocations: 81.11 kB / 409.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.1246, allocations: 141.7 kB / 410 MB, free: 12.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.1247, allocations: 25.7 kB / 410 MB, free: 12.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.16e-05/0.1247, allocations: 96.12 kB / 410.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.1248, allocations: 11.81 kB / 410.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.97e-05/0.1248, allocations: 29.66 kB / 410.1 MB, free: 12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.1249, allocations: 318.8 kB / 410.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.671e-05/0.125, allocations: 27.98 kB / 410.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.157e-05/0.125, allocations: 27.98 kB / 410.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001234/0.1251, allocations: 120.3 kB / 410.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1252, allocations: 0 / 410.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002029/0.1254, allocations: 167.2 kB / 410.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.518e-05/0.1255, allocations: 37.69 kB / 410.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.1255, allocations: 0 / 410.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.1255, allocations: 7.938 kB / 410.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.563e-05/0.1255, allocations: 8 kB / 410.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.1256, allocations: 0 / 410.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.717e-05/0.1256, allocations: 11.84 kB / 410.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.1257, allocations: 4 kB / 410.8 MB, free: 11.24 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.0001182/0.1258, allocations: 151.5 kB / 411 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.648e-05/0.1258, allocations: 15.83 kB / 411 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.324e-05/0.1258, allocations: 12.38 kB / 411 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1258, allocations: 0 / 411 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1259, allocations: 4 kB / 411 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.1259, allocations: 0 / 411 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/0.126, allocations: 185.6 kB / 411.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.126, allocations: 3.938 kB / 411.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.093e-05/0.126, allocations: 0 / 411.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.126, allocations: 7.938 kB / 411.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.1261, allocations: 7.984 kB / 411.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1261, allocations: 0 / 411.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1261, allocations: 0 / 411.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.1263, allocations: 214.7 kB / 411.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.077e-05/0.1264, allocations: 96.94 kB / 411.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.546e-05/0.1264, allocations: 0 / 411.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.254e-05/0.1265, allocations: 4 kB / 411.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.062e-05/0.1265, allocations: 8 kB / 411.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.1265, allocations: 4 kB / 411.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.306e-05/0.1266, allocations: 114.2 kB / 411.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1266, allocations: 0 / 411.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002389/0.1269, allocations: 40 kB / 411.7 MB, free: 10.28 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.001023/0.1279, allocations: 0.9187 MB / 412.6 MB, free: 9.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002331/0.1282, allocations: 163.4 kB / 412.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1282, allocations: 0 / 412.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.1283, allocations: 131.4 kB / 412.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001846/0.1285, allocations: 8 kB / 412.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.1301, allocations: 1.656 MB / 414.6 MB, free: 7.332 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.1304, allocations: 0.6922 MB / 415.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.595e-05/0.1304, allocations: 8 kB / 415.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.713e-05/0.1305, allocations: 23.42 kB / 415.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1305, allocations: 0 / 415.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02102/0.1515, allocations: 2.896 MB / 418.2 MB, free: 3.742 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.