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.00512/0.00512, allocations: 99.52 kB / 15.73 MB, free: 6.039 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.001268/0.001268, allocations: 200.8 kB / 16.68 MB, free: 5.965 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1747/0.1747, allocations: 2.924 MB / 293.5 MB, free: 3.23 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 71.91 kB / 405.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3173, allocations: 50.34 MB / 456.1 MB, free: 28 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.00276/0.3201, allocations: 1.492 MB / 457.6 MB, free: 26.98 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001555/0.3217, allocations: 1.265 MB / 458.9 MB, free: 26.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.582e-05/0.3218, allocations: 3 kB / 458.9 MB, free: 26.09 MB / 366.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.000338/0.3221, allocations: 36.56 kB / 458.9 MB, free: 26.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.621e-05/0.3222, allocations: 26.02 kB / 458.9 MB, free: 26.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.3225, allocations: 77.59 kB / 459 MB, free: 26.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001012/0.3226, allocations: 70.47 kB / 459.1 MB, free: 25.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.431e-05/0.3226, allocations: 3.156 kB / 459.1 MB, free: 25.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.291e-05/0.3227, allocations: 25 kB / 459.1 MB, free: 25.97 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.3229, allocations: 24.88 kB / 459.1 MB, free: 25.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.618e-05/0.3229, allocations: 3.094 kB / 459.1 MB, free: 25.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000141/0.323, allocations: 102.8 kB / 459.2 MB, free: 25.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.751e-05/0.3231, allocations: 13.45 kB / 459.2 MB, free: 25.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.11e-05/0.3232, allocations: 29.12 kB / 459.3 MB, free: 25.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002345/0.3234, allocations: 133.2 kB / 459.4 MB, free: 25.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3234, allocations: 3.938 kB / 459.4 MB, free: 25.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3234, allocations: 4 kB / 459.4 MB, free: 25.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.3234, allocations: 0 / 459.4 MB, free: 25.86 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.0004851/0.3239, allocations: 424.6 kB / 459.8 MB, free: 25.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.324, allocations: 13.14 kB / 459.8 MB, free: 25.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.498e-05/0.324, allocations: 33.84 kB / 459.9 MB, free: 25.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.094e-05/0.324, allocations: 7.891 kB / 459.9 MB, free: 25.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/0.3243, allocations: 194.6 kB / 460.1 MB, free: 25.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.3243, allocations: 4.375 kB / 460.1 MB, free: 25.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.3243, allocations: 3.312 kB / 460.1 MB, free: 25.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001371/0.3244, allocations: 69.52 kB / 460.1 MB, free: 25.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.3245, allocations: 0 / 460.1 MB, free: 25.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.3245, allocations: 0 / 460.1 MB, free: 25.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.3245, allocations: 3.938 kB / 460.1 MB, free: 25.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.296e-05/0.3246, allocations: 29.19 kB / 460.2 MB, free: 25.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001457/0.3247, allocations: 186.3 kB / 460.3 MB, free: 24.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.065e-05/0.3248, allocations: 48.66 kB / 460.4 MB, free: 24.88 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.676e-05/0.3249, allocations: 42.3 kB / 460.4 MB, free: 24.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.3249, allocations: 3.516 kB / 460.4 MB, free: 24.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001333/0.325, allocations: 115.6 kB / 460.6 MB, free: 24.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.325, allocations: 0 / 460.6 MB, free: 24.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003582/0.3254, allocations: 183.9 kB / 460.7 MB, free: 24.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.3254, allocations: 83.34 kB / 460.8 MB, free: 24.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.3255, allocations: 144 kB / 461 MB, free: 24.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.045e-05/0.3256, allocations: 25.7 kB / 461 MB, free: 24.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.884e-05/0.3256, allocations: 94.47 kB / 461.1 MB, free: 24.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.118e-05/0.3256, allocations: 18.86 kB / 461.1 MB, free: 24.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.48e-05/0.3257, allocations: 22.56 kB / 461.1 MB, free: 24.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.279e-05/0.3257, allocations: 321.3 kB / 461.4 MB, free: 23.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.242e-05/0.3258, allocations: 22.58 kB / 461.4 MB, free: 23.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.755e-05/0.3258, allocations: 36.7 kB / 461.5 MB, free: 23.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001064/0.3259, allocations: 124.6 kB / 461.6 MB, free: 23.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3259, allocations: 3.344 kB / 461.6 MB, free: 23.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001697/0.3261, allocations: 170.1 kB / 461.8 MB, free: 23.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.3262, allocations: 35.84 kB / 461.8 MB, free: 23.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.3262, allocations: 0 / 461.8 MB, free: 23.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.3262, allocations: 0 / 461.8 MB, free: 23.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.967e-05/0.3262, allocations: 3.219 kB / 461.8 MB, free: 23.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.3263, allocations: 7.328 kB / 461.8 MB, free: 23.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.541e-05/0.3263, allocations: 14.42 kB / 461.8 MB, free: 23.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.3263, allocations: 3.25 kB / 461.8 MB, free: 23.71 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.648e-05/0.3264, allocations: 163.7 kB / 462 MB, free: 23.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.28e-05/0.3265, allocations: 15.11 kB / 462 MB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.012e-05/0.3265, allocations: 11.53 kB / 462 MB, free: 23.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.3265, allocations: 3.234 kB / 462 MB, free: 23.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3265, allocations: 0 / 462 MB, free: 23.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.3265, allocations: 0 / 462 MB, free: 23.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.339e-05/0.3266, allocations: 191.5 kB / 462.2 MB, free: 23.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3266, allocations: 3.938 kB / 462.2 MB, free: 23.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.878e-05/0.3266, allocations: 3.25 kB / 462.2 MB, free: 23.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.3267, allocations: 0 / 462.2 MB, free: 23.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.3267, allocations: 3.062 kB / 462.2 MB, free: 23.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.3267, allocations: 4 kB / 462.2 MB, free: 23.33 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3267, allocations: 0 / 462.2 MB, free: 23.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002393/0.3269, allocations: 214.6 kB / 462.4 MB, free: 23.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.279e-05/0.327, allocations: 87.45 kB / 462.5 MB, free: 23.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.72e-05/0.327, allocations: 7.031 kB / 462.5 MB, free: 23.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.174e-05/0.3271, allocations: 3.25 kB / 462.5 MB, free: 23.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.714e-05/0.3271, allocations: 3.281 kB / 462.5 MB, free: 23.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.3271, allocations: 6.391 kB / 462.5 MB, free: 23.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.999e-05/0.3272, allocations: 109.7 kB / 462.7 MB, free: 23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3272, allocations: 0 / 462.7 MB, free: 23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002474/0.3275, allocations: 47.14 kB / 462.7 MB, free: 22.99 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.0009603/0.3284, allocations: 0.9169 MB / 463.6 MB, free: 22.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002429/0.3287, allocations: 162.2 kB / 463.8 MB, free: 22.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3287, allocations: 4 kB / 463.8 MB, free: 22.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.706e-05/0.3288, allocations: 121.6 kB / 463.9 MB, free: 22.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002014/0.329, allocations: 10.12 kB / 463.9 MB, free: 22.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.3305, allocations: 1.66 MB / 465.6 MB, free: 20.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001953/0.3307, allocations: 0.6918 MB / 466.3 MB, free: 20.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.706e-05/0.3308, allocations: 13.95 kB / 466.3 MB, free: 20.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.588e-05/0.3309, allocations: 24.81 kB / 466.3 MB, free: 20.03 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3309, allocations: 0 / 466.3 MB, free: 20.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02097/0.3518, allocations: 2.948 MB / 469.2 MB, free: 19.38 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.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 -- Installing dynamic dependencies from list: /home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/Resources/Library/linux64/libED_MATFile.a;/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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.