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.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.001312/0.001312, allocations: 107.6 kB / 16.45 MB, free: 6.453 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.001437/0.001437, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.526/1.526, allocations: 230.6 MB / 252.8 MB, free: 8.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.01534/0.01534, allocations: 3.268 MB / 312.1 MB, free: 0.9805 MB / 238.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/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(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"}) [Timeout 660] "Notification: ExternData requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 63.91 kB / 434.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1026, allocations: 54.34 MB / 488.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.002833/0.1054, allocations: 1.517 MB / 490.2 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001937/0.1074, allocations: 1.296 MB / 491.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.694e-05/0.1074, allocations: 0 / 491.5 MB, free: 5.477 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:123:3-145:14:writable] Warning: Pure function 'ExternData.MATFile' contains a call to impure function 'ExternData.Types.ExternMATFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0002755/0.1077, allocations: 39.83 kB / 491.6 MB, free: 5.438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.1078, allocations: 27.81 kB / 491.6 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002753/0.1081, allocations: 79.83 kB / 491.7 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001267/0.1082, allocations: 59.78 kB / 491.7 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.899e-05/0.1082, allocations: 4 kB / 491.7 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.351e-05/0.1083, allocations: 27.86 kB / 491.8 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001553/0.1085, allocations: 26.28 kB / 491.8 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.1085, allocations: 4 kB / 491.8 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001659/0.1086, allocations: 95.86 kB / 491.9 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.985e-05/0.1087, allocations: 19.92 kB / 491.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.273e-05/0.1088, allocations: 31.84 kB / 491.9 MB, free: 5.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002172/0.109, allocations: 123.6 kB / 492.1 MB, free: 4.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.109, allocations: 4 kB / 492.1 MB, free: 4.945 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.109, allocations: 0 / 492.1 MB, free: 4.945 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.648e-06/0.109, allocations: 0 / 492.1 MB, free: 4.945 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.0005726/0.1096, allocations: 416.7 kB / 492.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.1096, allocations: 16.02 kB / 492.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.847e-05/0.1096, allocations: 34.75 kB / 492.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.725e-05/0.1097, allocations: 12.89 kB / 492.5 MB, free: 4.414 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002826/0.11, allocations: 208.2 kB / 492.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.171e-06/0.11, allocations: 384 / 492.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.474e-05/0.11, allocations: 4.375 kB / 492.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001403/0.1101, allocations: 65.8 kB / 492.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.1101, allocations: 0 / 492.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.347e-06/0.1101, allocations: 0 / 492.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-06/0.1101, allocations: 0 / 492.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.63e-05/0.1102, allocations: 31.98 kB / 492.8 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002227/0.1104, allocations: 181.6 kB / 493 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.613e-05/0.1105, allocations: 42.5 kB / 493.1 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.458e-05/0.1106, allocations: 32.89 kB / 493.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.362e-06/0.1106, allocations: 0 / 493.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001768/0.1108, allocations: 109 kB / 493.2 MB, free: 3.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.283e-06/0.1108, allocations: 0 / 493.2 MB, free: 3.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003875/0.1112, allocations: 203.3 kB / 493.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.512e-05/0.1112, allocations: 81.11 kB / 493.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.1114, allocations: 145.8 kB / 493.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.1114, allocations: 25.7 kB / 493.6 MB, free: 3.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.984e-05/0.1115, allocations: 88.14 kB / 493.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.962e-05/0.1115, allocations: 27.78 kB / 493.7 MB, free: 3.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.503e-05/0.1115, allocations: 21.72 kB / 493.8 MB, free: 2.992 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.1117, allocations: 318.8 kB / 494.1 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.513e-05/0.1117, allocations: 35.98 kB / 494.1 MB, free: 2.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.962e-05/0.1118, allocations: 31.98 kB / 494.1 MB, free: 2.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001539/0.112, allocations: 116.2 kB / 494.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.112, allocations: 0 / 494.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002348/0.1122, allocations: 167.2 kB / 494.4 MB, free: 2.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.696e-05/0.1122, allocations: 37.69 kB / 494.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.1122, allocations: 0 / 494.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.1123, allocations: 0 / 494.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.745e-05/0.1123, allocations: 4 kB / 494.5 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.1123, allocations: 0 / 494.5 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.986e-05/0.1124, allocations: 8 kB / 494.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.1124, allocations: 4 kB / 494.5 MB, free: 2.242 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.0001286/0.1125, allocations: 155.5 kB / 494.6 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.938e-05/0.1126, allocations: 11.89 kB / 494.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.431e-05/0.1126, allocations: 16.3 kB / 494.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.1126, allocations: 0 / 494.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1126, allocations: 0 / 494.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.1126, allocations: 0 / 494.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001649/0.1128, allocations: 189.7 kB / 494.8 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1128, allocations: 11.88 kB / 494.9 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.319e-05/0.1128, allocations: 4 kB / 494.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1128, allocations: 0 / 494.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.1128, allocations: 7.984 kB / 494.9 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1128, allocations: 0 / 494.9 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1128, allocations: 0 / 494.9 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003065/0.1131, allocations: 210.7 kB / 495.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.37e-05/0.1132, allocations: 92.97 kB / 495.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.1132, allocations: 8.188 kB / 495.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.408e-05/0.1132, allocations: 8 kB / 495.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.04e-05/0.1133, allocations: 3.984 kB / 495.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.1133, allocations: 7.938 kB / 495.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001044/0.1134, allocations: 117.6 kB / 495.3 MB, free: 1.309 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1134, allocations: 0 / 495.3 MB, free: 1.309 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002496/0.1136, allocations: 39.94 kB / 495.3 MB, free: 1.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.001463/0.1151, allocations: 0.9064 MB / 496.2 MB, free: 400 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002248/0.1153, allocations: 139.2 kB / 496.4 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.1153, allocations: 0 / 496.4 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.1154, allocations: 91.38 kB / 496.5 MB, free: 144 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001975/0.1156, allocations: 12 kB / 496.5 MB, free: 132 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.1175, allocations: 1.665 MB / 498.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.1178, allocations: 0.6885 MB / 498.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.681e-05/0.1179, allocations: 11.98 kB / 498.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.548e-05/0.1179, allocations: 27.52 kB / 498.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1179, allocations: 3.938 kB / 498.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02772/0.1457, allocations: 2.959 MB / 0.4901 GB, free: 10.72 MB / 366.1 MB Error: Error building simulator. Build log: cmd: cd 'ExternData_ExternData_Examples_MATTest.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/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.2.0/Resources/Library/linux64/libED_MATFile.a -- Linking /home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/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 -- Installing dynamic dependencies from list: /home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/Resources/Library/linux64/libED_MATFile.a;/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/Resources/Library/linux64/libhdf5.a;/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/x86_64-linux-gnu/omc/libzlib.a;d-NOTFOUND -- 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 Generate step failed. Build files cannot be regenerated correctly. " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 2.9455901949986583] Failed to read output from testmodel.py, exit status != 0: 0.5579365979938302 0.5850830530000001 0.47099121600000005 Calling exit ...