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.00588/0.00588, allocations: 105.8 kB / 15.74 MB, free: 5.996 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.001151/0.001151, allocations: 194.4 kB / 16.67 MB, free: 5.918 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01421/0.01421, allocations: 2.952 MB / 293.5 MB, free: 11.8 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 67.91 kB / 405.8 MB, free: 29.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07635/0.0776, allocations: 50.34 MB / 456.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.002891/0.08055, allocations: 1.48 MB / 457.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00175/0.08233, allocations: 1.272 MB / 458.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.446e-05/0.0824, allocations: 0 / 458.9 MB, free: 8.109 MB / 334.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.0003065/0.08272, allocations: 35.72 kB / 458.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001113/0.08284, allocations: 27.86 kB / 458.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002729/0.08312, allocations: 90.12 kB / 459 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001132/0.08324, allocations: 51.86 kB / 459.1 MB, free: 7.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.008e-05/0.08329, allocations: 10.8 kB / 459.1 MB, free: 7.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.437e-05/0.08335, allocations: 23.94 kB / 459.1 MB, free: 7.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.08352, allocations: 27.84 kB / 459.1 MB, free: 7.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.08354, allocations: 4 kB / 459.1 MB, free: 7.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001569/0.0837, allocations: 103.8 kB / 459.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.386e-05/0.08377, allocations: 11.98 kB / 459.2 MB, free: 7.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.269e-05/0.08383, allocations: 31.8 kB / 459.3 MB, free: 7.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002194/0.08405, allocations: 139.6 kB / 459.4 MB, free: 7.566 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.08406, allocations: 0 / 459.4 MB, free: 7.566 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.08407, allocations: 0 / 459.4 MB, free: 7.566 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.08408, allocations: 0 / 459.4 MB, free: 7.566 MB / 334.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.0005077/0.0846, allocations: 413.8 kB / 459.8 MB, free: 7.109 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.08465, allocations: 15.89 kB / 459.8 MB, free: 7.094 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.636e-05/0.08469, allocations: 34.75 kB / 459.9 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.14e-05/0.08474, allocations: 12.84 kB / 459.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.085, allocations: 196.2 kB / 460.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.08502, allocations: 4.359 kB / 460.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.08504, allocations: 4.375 kB / 460.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001348/0.08518, allocations: 61.81 kB / 460.1 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.0852, allocations: 4 kB / 460.1 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.08521, allocations: 0 / 460.1 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.08522, allocations: 0 / 460.1 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.939e-05/0.08529, allocations: 39.91 kB / 460.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001697/0.08547, allocations: 177.6 kB / 460.3 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.483e-05/0.08555, allocations: 50.56 kB / 460.4 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.857e-05/0.08562, allocations: 36.86 kB / 460.4 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.531e-05/0.08565, allocations: 8.016 kB / 460.4 MB, free: 6.363 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000156/0.08581, allocations: 117 kB / 460.5 MB, free: 6.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.273e-06/0.08583, allocations: 3.938 kB / 460.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003288/0.08616, allocations: 187.4 kB / 460.7 MB, free: 6.031 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.08622, allocations: 85.09 kB / 460.8 MB, free: 5.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.08634, allocations: 137.8 kB / 461 MB, free: 5.785 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.08636, allocations: 29.7 kB / 461 MB, free: 5.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.847e-05/0.08641, allocations: 88.14 kB / 461.1 MB, free: 5.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.252e-05/0.08645, allocations: 23.66 kB / 461.1 MB, free: 5.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.099e-05/0.08649, allocations: 21.7 kB / 461.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.773e-05/0.0866, allocations: 322.8 kB / 461.4 MB, free: 5.285 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.676e-05/0.08665, allocations: 24 kB / 461.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.14e-05/0.0867, allocations: 35.86 kB / 461.5 MB, free: 5.227 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.08682, allocations: 116.2 kB / 461.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.08683, allocations: 0 / 461.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001975/0.08703, allocations: 167.1 kB / 461.8 MB, free: 4.922 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.698e-05/0.08708, allocations: 37.7 kB / 461.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.08709, allocations: 4 kB / 461.8 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.08711, allocations: 3.984 kB / 461.8 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.044e-05/0.08717, allocations: 4 kB / 461.8 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.08718, allocations: 4 kB / 461.8 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.678e-05/0.08726, allocations: 7.906 kB / 461.8 MB, free: 4.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.08727, allocations: 0 / 461.8 MB, free: 4.855 MB / 334.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.0001033/0.08738, allocations: 154.5 kB / 462 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.675e-05/0.08741, allocations: 11.94 kB / 462 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.132e-05/0.08744, allocations: 12.38 kB / 462 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.08745, allocations: 4 kB / 462 MB, free: 4.664 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.08746, allocations: 3.984 kB / 462 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.08747, allocations: 0 / 462 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000123/0.08759, allocations: 185.5 kB / 462.2 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.0876, allocations: 3.938 kB / 462.2 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.026e-05/0.08763, allocations: 4 kB / 462.2 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.08764, allocations: 3.938 kB / 462.2 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.08765, allocations: 4 kB / 462.2 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.08766, allocations: 0 / 462.2 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.844e-06/0.08767, allocations: 4 kB / 462.2 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002603/0.08794, allocations: 230.9 kB / 462.4 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.402e-05/0.08799, allocations: 84.98 kB / 462.5 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.606e-05/0.08802, allocations: 4 kB / 462.5 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.188e-05/0.08808, allocations: 4 kB / 462.5 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.318e-05/0.08812, allocations: 11.98 kB / 462.5 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.08814, allocations: 0 / 462.5 MB, free: 4.039 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.052e-05/0.08823, allocations: 115.1 kB / 462.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.08824, allocations: 4 kB / 462.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002447/0.08849, allocations: 43.91 kB / 462.7 MB, free: 3.883 MB / 334.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.001442/0.08994, allocations: 0.9061 MB / 463.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002272/0.09017, allocations: 159.4 kB / 463.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.09019, allocations: 0 / 463.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.0903, allocations: 127.4 kB / 463.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002012/0.09051, allocations: 15.92 kB / 463.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.09213, allocations: 1.66 MB / 465.6 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002311/0.09237, allocations: 0.6922 MB / 466.2 MB, free: 232 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.845e-05/0.09242, allocations: 12.14 kB / 466.3 MB, free: 220 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.961e-05/0.09247, allocations: 27.42 kB / 466.3 MB, free: 192 kB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09248, allocations: 0 / 466.3 MB, free: 192 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0196/0.1121, allocations: 2.981 MB / 469.3 MB, free: 13.28 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 -- 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.