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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 103.7 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 188.6 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 225.6 MB / 247.8 MB, free: 3.754 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.01393/0.01393, allocations: 2.974 MB / 305.7 MB, free: 3.328 MB / 238.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.0.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 67.89 kB / 425.4 MB, free: 3.676 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2869, allocations: 53.07 MB / 478.5 MB, free: 26.17 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.00234/0.2892, allocations: 1.498 MB / 480 MB, free: 25.14 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.2906, allocations: 1.275 MB / 481.2 MB, free: 24.24 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.409e-05/0.2907, allocations: 3.062 kB / 481.2 MB, free: 24.24 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.000324/0.291, allocations: 31.95 kB / 481.3 MB, free: 24.22 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.594e-05/0.2911, allocations: 32.11 kB / 481.3 MB, free: 24.2 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002543/0.2913, allocations: 77.52 kB / 481.4 MB, free: 24.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000107/0.2914, allocations: 56.61 kB / 481.4 MB, free: 24.14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.73e-05/0.2915, allocations: 5.906 kB / 481.4 MB, free: 24.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.536e-05/0.2915, allocations: 29.72 kB / 481.5 MB, free: 24.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001528/0.2917, allocations: 29.3 kB / 481.5 MB, free: 24.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.461e-05/0.2917, allocations: 2.562 kB / 481.5 MB, free: 24.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001365/0.2918, allocations: 97.39 kB / 481.6 MB, free: 24.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.434e-05/0.2919, allocations: 15.8 kB / 481.6 MB, free: 24.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.246e-05/0.2919, allocations: 32.84 kB / 481.6 MB, free: 24.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001897/0.2921, allocations: 128.4 kB / 481.8 MB, free: 24.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2921, allocations: 0 / 481.8 MB, free: 24.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2921, allocations: 0 / 481.8 MB, free: 24.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.2921, allocations: 4 kB / 481.8 MB, free: 24.02 MB / 366.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.0004513/0.2926, allocations: 424.1 kB / 482.2 MB, free: 23.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.2926, allocations: 13.2 kB / 482.2 MB, free: 23.59 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.564e-05/0.2926, allocations: 37.94 kB / 482.2 MB, free: 23.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.505e-05/0.2927, allocations: 8.109 kB / 482.3 MB, free: 23.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000231/0.2929, allocations: 207.4 kB / 482.5 MB, free: 23.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.452e-06/0.2929, allocations: 384 / 482.5 MB, free: 23.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.536e-05/0.2929, allocations: 3.156 kB / 482.5 MB, free: 23.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000126/0.2931, allocations: 72.16 kB / 482.5 MB, free: 23.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.2931, allocations: 3.938 kB / 482.5 MB, free: 23.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.2931, allocations: 3.938 kB / 482.5 MB, free: 23.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.2931, allocations: 0 / 482.5 MB, free: 23.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.712e-05/0.2931, allocations: 28.03 kB / 482.6 MB, free: 23.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001417/0.2933, allocations: 179.1 kB / 482.7 MB, free: 23.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.145e-05/0.2933, allocations: 45.45 kB / 482.8 MB, free: 23.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.678e-05/0.2934, allocations: 30.44 kB / 482.8 MB, free: 23.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.111e-06/0.2934, allocations: 4 kB / 482.8 MB, free: 23.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001313/0.2935, allocations: 114 kB / 482.9 MB, free: 22.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=8): time 1.233e-06/0.2935, allocations: 0 / 482.9 MB, free: 22.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002879/0.2938, allocations: 190.7 kB / 483.1 MB, free: 22.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.2938, allocations: 84.08 kB / 483.2 MB, free: 22.72 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.216e-05/0.2939, allocations: 138.2 kB / 483.3 MB, free: 22.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.748e-06/0.2939, allocations: 25.7 kB / 483.4 MB, free: 22.58 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.524e-05/0.294, allocations: 98.83 kB / 483.5 MB, free: 22.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.873e-05/0.294, allocations: 19.34 kB / 483.5 MB, free: 22.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.294, allocations: 22.94 kB / 483.5 MB, free: 22.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.676e-05/0.2941, allocations: 318 kB / 483.8 MB, free: 22.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.058e-05/0.2941, allocations: 29.81 kB / 483.8 MB, free: 22.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.297e-05/0.2942, allocations: 26.45 kB / 483.9 MB, free: 22.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.7e-05/0.2942, allocations: 124.1 kB / 484 MB, free: 22.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2942, allocations: 0 / 484 MB, free: 22.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001619/0.2944, allocations: 167.6 kB / 484.1 MB, free: 21.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.935e-05/0.2944, allocations: 35.14 kB / 484.2 MB, free: 21.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.2945, allocations: 0 / 484.2 MB, free: 21.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.2945, allocations: 96 / 484.2 MB, free: 21.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.766e-05/0.2945, allocations: 10.22 kB / 484.2 MB, free: 21.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.2945, allocations: 0 / 484.2 MB, free: 21.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.369e-05/0.2946, allocations: 14.03 kB / 484.2 MB, free: 21.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.826e-06/0.2946, allocations: 2.969 kB / 484.2 MB, free: 21.88 MB / 366.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 7.509e-05/0.2947, allocations: 158.5 kB / 484.4 MB, free: 21.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.099e-05/0.2947, allocations: 18.14 kB / 484.4 MB, free: 21.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.205e-05/0.2947, allocations: 14.8 kB / 484.4 MB, free: 21.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2947, allocations: 3.984 kB / 484.4 MB, free: 21.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2947, allocations: 0 / 484.4 MB, free: 21.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.2947, allocations: 0 / 484.4 MB, free: 21.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.423e-05/0.2948, allocations: 184.3 kB / 484.6 MB, free: 21.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2948, allocations: 3.938 kB / 484.6 MB, free: 21.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.732e-05/0.2948, allocations: 3.062 kB / 484.6 MB, free: 21.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2948, allocations: 3.188 kB / 484.6 MB, free: 21.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.2948, allocations: 7.375 kB / 484.6 MB, free: 21.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2948, allocations: 6.844 kB / 484.6 MB, free: 21.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.2948, allocations: 4 kB / 484.6 MB, free: 21.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000201/0.295, allocations: 201.9 kB / 484.8 MB, free: 21.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.169e-05/0.2951, allocations: 91.19 kB / 484.9 MB, free: 21.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.423e-05/0.2951, allocations: 2.969 kB / 484.9 MB, free: 21.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.792e-05/0.2952, allocations: 6.188 kB / 484.9 MB, free: 21.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.613e-05/0.2952, allocations: 3.125 kB / 484.9 MB, free: 21.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.2952, allocations: 10.78 kB / 484.9 MB, free: 21.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.347e-05/0.2952, allocations: 114.8 kB / 485 MB, free: 21.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2952, allocations: 0 / 485 MB, free: 21.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000237/0.2955, allocations: 44.31 kB / 485.1 MB, free: 21.15 MB / 366.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.001168/0.2967, allocations: 0.9125 MB / 486 MB, free: 20.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002027/0.2969, allocations: 136.6 kB / 486.1 MB, free: 20.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2969, allocations: 4 kB / 486.1 MB, free: 20.33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.456e-05/0.2969, allocations: 101.5 kB / 486.2 MB, free: 20.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002021/0.2971, allocations: 7.719 kB / 486.2 MB, free: 20.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.2986, allocations: 1.648 MB / 487.9 MB, free: 18.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/0.2987, allocations: 0.6993 MB / 488.6 MB, free: 18.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.198e-05/0.2988, allocations: 9.875 kB / 488.6 MB, free: 18.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.669e-05/0.2988, allocations: 25.28 kB / 488.6 MB, free: 18.23 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.2988, allocations: 0 / 488.6 MB, free: 18.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02647/0.3253, allocations: 2.965 MB / 491.6 MB, free: 17.55 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_2/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_2/OpenModelicaLibraryTesting/ExternData_ExternData.Examples.MATTest/ExternData_ExternData_Examples_MATTest.fmutmp/sources/../binaries/linux64 -- Linking /home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/Resources/Library/linux64/libED_MATFile.a -- Linking /home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/Resources/Library/linux64/libhdf5.a -- Linking /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.0.5/Resources/Library/linux64/libED_MATFile.a;/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/Resources/Library/linux64/libhdf5.a;/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/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.992436799220741] Failed to read output from testmodel.py, exit status != 0: 0.7098275362513959 0.722024042 0.42739313799999995 Calling exit ...