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.5/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006449/0.006449, allocations: 99.78 kB / 15.73 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 189.4 kB / 16.67 MB, free: 5.977 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.464/1.464, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.1254/0.1254, allocations: 2.929 MB / 293.5 MB, free: 3.273 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 63.91 kB / 405.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2912, allocations: 50.33 MB / 456.1 MB, free: 27.95 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.002542/0.2938, allocations: 1.497 MB / 457.6 MB, free: 26.92 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.2956, allocations: 1.27 MB / 458.9 MB, free: 26.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.042e-05/0.2956, allocations: 0 / 458.9 MB, free: 26.02 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.0003681/0.296, allocations: 30.7 kB / 458.9 MB, free: 26 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001004/0.2961, allocations: 25.73 kB / 458.9 MB, free: 25.99 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002848/0.2964, allocations: 85.05 kB / 459 MB, free: 25.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001279/0.2965, allocations: 66.42 kB / 459.1 MB, free: 25.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.325e-05/0.2966, allocations: 3.094 kB / 459.1 MB, free: 25.92 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.795e-05/0.2967, allocations: 24.78 kB / 459.1 MB, free: 25.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.2969, allocations: 32.09 kB / 459.1 MB, free: 25.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.526e-05/0.2969, allocations: 3.188 kB / 459.1 MB, free: 25.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001527/0.2971, allocations: 95.53 kB / 459.2 MB, free: 25.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.875e-05/0.2971, allocations: 21.55 kB / 459.2 MB, free: 25.86 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.166e-05/0.2972, allocations: 29.39 kB / 459.3 MB, free: 25.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002126/0.2974, allocations: 131.5 kB / 459.4 MB, free: 25.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2974, allocations: 0 / 459.4 MB, free: 25.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2974, allocations: 0 / 459.4 MB, free: 25.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.2974, allocations: 0 / 459.4 MB, free: 25.8 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.0004803/0.2979, allocations: 420.5 kB / 459.8 MB, free: 25.37 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.298, allocations: 13.7 kB / 459.8 MB, free: 25.37 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.772e-05/0.298, allocations: 37.28 kB / 459.9 MB, free: 25.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.835e-05/0.2981, allocations: 8.203 kB / 459.9 MB, free: 25.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002187/0.2983, allocations: 199.3 kB / 460.1 MB, free: 25.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.2983, allocations: 8.312 kB / 460.1 MB, free: 25.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.086e-05/0.2983, allocations: 7.594 kB / 460.1 MB, free: 25.1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001332/0.2985, allocations: 63.33 kB / 460.1 MB, free: 25.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.2985, allocations: 0 / 460.1 MB, free: 25.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.2985, allocations: 0 / 460.1 MB, free: 25.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.2985, allocations: 3.188 kB / 460.1 MB, free: 25.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.286e-05/0.2986, allocations: 33.52 kB / 460.2 MB, free: 25.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001621/0.2987, allocations: 172.4 kB / 460.3 MB, free: 24.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.82e-05/0.2988, allocations: 56.61 kB / 460.4 MB, free: 24.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.073e-05/0.2989, allocations: 38.83 kB / 460.4 MB, free: 24.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.266e-05/0.2989, allocations: 2.906 kB / 460.4 MB, free: 24.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001394/0.2991, allocations: 111.7 kB / 460.5 MB, free: 24.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=8): time 1.263e-06/0.2991, allocations: 3.125 kB / 460.6 MB, free: 24.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003234/0.2994, allocations: 184.7 kB / 460.7 MB, free: 24.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.2995, allocations: 88.02 kB / 460.8 MB, free: 24.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.2996, allocations: 147.3 kB / 461 MB, free: 24.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.22e-05/0.2996, allocations: 28.89 kB / 461 MB, free: 24.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.221e-05/0.2996, allocations: 91.28 kB / 461.1 MB, free: 24.26 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.12e-05/0.2997, allocations: 22.48 kB / 461.1 MB, free: 24.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.728e-05/0.2997, allocations: 20 kB / 461.1 MB, free: 24.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.352e-05/0.2998, allocations: 321.6 kB / 461.4 MB, free: 23.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.535e-05/0.2998, allocations: 27.27 kB / 461.5 MB, free: 23.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.661e-05/0.2999, allocations: 27.92 kB / 461.5 MB, free: 23.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/0.3, allocations: 123.3 kB / 461.6 MB, free: 23.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.3, allocations: 4 kB / 461.6 MB, free: 23.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000178/0.3002, allocations: 166.2 kB / 461.8 MB, free: 23.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.3002, allocations: 35.36 kB / 461.8 MB, free: 23.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3002, allocations: 0 / 461.8 MB, free: 23.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.3002, allocations: 3.031 kB / 461.8 MB, free: 23.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.315e-05/0.3003, allocations: 3.094 kB / 461.8 MB, free: 23.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.3003, allocations: 0 / 461.8 MB, free: 23.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.566e-05/0.3004, allocations: 14.94 kB / 461.8 MB, free: 23.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.3004, allocations: 6.297 kB / 461.8 MB, free: 23.65 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 8.621e-05/0.3005, allocations: 156.8 kB / 462 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.402e-05/0.3005, allocations: 18.16 kB / 462 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.734e-05/0.3006, allocations: 7.5 kB / 462 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.3006, allocations: 0 / 462 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.3006, allocations: 0 / 462 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3006, allocations: 7.5 kB / 462 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001058/0.3007, allocations: 187.1 kB / 462.2 MB, free: 23.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3007, allocations: 11.2 kB / 462.2 MB, free: 23.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.938e-05/0.3007, allocations: 3.156 kB / 462.2 MB, free: 23.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.3008, allocations: 4 kB / 462.2 MB, free: 23.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.3008, allocations: 7.188 kB / 462.2 MB, free: 23.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3008, allocations: 0 / 462.2 MB, free: 23.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3008, allocations: 0 / 462.2 MB, free: 23.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002455/0.301, allocations: 210.3 kB / 462.4 MB, free: 23.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.859e-05/0.3011, allocations: 91.75 kB / 462.5 MB, free: 23.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.694e-05/0.3011, allocations: 3.156 kB / 462.5 MB, free: 23.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.72e-05/0.3012, allocations: 3.219 kB / 462.5 MB, free: 23.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.995e-05/0.3012, allocations: 7.125 kB / 462.5 MB, free: 23.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.3012, allocations: 6.641 kB / 462.5 MB, free: 23.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.429e-05/0.3013, allocations: 109.6 kB / 462.7 MB, free: 22.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3013, allocations: 0 / 462.7 MB, free: 22.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002402/0.3015, allocations: 42.84 kB / 462.7 MB, free: 22.93 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.00114/0.3027, allocations: 0.9159 MB / 463.6 MB, free: 22.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002176/0.3029, allocations: 170.2 kB / 463.8 MB, free: 22.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3029, allocations: 0 / 463.8 MB, free: 22.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.117e-05/0.303, allocations: 126.6 kB / 463.9 MB, free: 21.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001919/0.3032, allocations: 10.38 kB / 463.9 MB, free: 21.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.3047, allocations: 1.65 MB / 465.6 MB, free: 20.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001619/0.3049, allocations: 0.6945 MB / 466.3 MB, free: 19.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.488e-05/0.305, allocations: 10.42 kB / 466.3 MB, free: 19.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.278e-05/0.305, allocations: 29.28 kB / 466.3 MB, free: 19.96 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.305, allocations: 0 / 466.3 MB, free: 19.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02533/0.3304, allocations: 2.946 MB / 469.2 MB, free: 19.31 MB / 366.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.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/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/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 Warning: Manually-specified variables were not used by the project: CMAKE_CXX_COMPILER CMake Generate step failed. Build files cannot be regenerated correctly.