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.01069/0.01069, allocations: 99.89 kB / 15.73 MB, free: 6.016 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.002206/0.002206, allocations: 184 kB / 16.67 MB, free: 5.93 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.439/1.439, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.01644/0.01644, allocations: 2.949 MB / 293.5 MB, free: 11.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 67.91 kB / 405.8 MB, free: 29.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09447/0.09631, allocations: 50.33 MB / 456.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.003456/0.09982, allocations: 1.484 MB / 457.6 MB, free: 9.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001942/0.1018, allocations: 1.276 MB / 458.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.613e-05/0.1019, allocations: 7.938 kB / 458.9 MB, free: 8.078 MB / 334.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.0003483/0.1022, allocations: 31.8 kB / 458.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.1024, allocations: 27.84 kB / 458.9 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002979/0.1027, allocations: 75.8 kB / 459 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001488/0.1028, allocations: 63.83 kB / 459.1 MB, free: 7.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.722e-05/0.1029, allocations: 8.219 kB / 459.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.978e-05/0.103, allocations: 27.92 kB / 459.1 MB, free: 7.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001987/0.1032, allocations: 31.84 kB / 459.1 MB, free: 7.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.774e-05/0.1032, allocations: 4 kB / 459.1 MB, free: 7.812 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/0.1034, allocations: 91.86 kB / 459.2 MB, free: 7.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.608e-05/0.1035, allocations: 15.98 kB / 459.2 MB, free: 7.707 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.501e-05/0.1035, allocations: 31.78 kB / 459.3 MB, free: 7.676 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002744/0.1038, allocations: 123.6 kB / 459.4 MB, free: 7.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1038, allocations: 0 / 459.4 MB, free: 7.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1038, allocations: 4 kB / 459.4 MB, free: 7.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.1039, allocations: 0 / 459.4 MB, free: 7.551 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.0006791/0.1045, allocations: 420.7 kB / 459.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.1046, allocations: 19.83 kB / 459.8 MB, free: 7.066 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.439e-05/0.1046, allocations: 34.75 kB / 459.9 MB, free: 7.023 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.285e-05/0.1047, allocations: 8.891 kB / 459.9 MB, free: 7.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.105, allocations: 200.2 kB / 460.1 MB, free: 6.781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.105, allocations: 384 / 460.1 MB, free: 6.781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.105, allocations: 4.375 kB / 460.1 MB, free: 6.777 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001519/0.1052, allocations: 61.8 kB / 460.1 MB, free: 6.711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.1052, allocations: 8 kB / 460.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.996e-06/0.1052, allocations: 0 / 460.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.1052, allocations: 0 / 460.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.707e-05/0.1053, allocations: 35.92 kB / 460.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002224/0.1055, allocations: 177.6 kB / 460.4 MB, free: 6.445 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.928e-05/0.1057, allocations: 54.55 kB / 460.4 MB, free: 6.383 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.381e-05/0.1057, allocations: 44.83 kB / 460.4 MB, free: 6.336 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.474e-06/0.1057, allocations: 0 / 460.4 MB, free: 6.336 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001869/0.1059, allocations: 117 kB / 460.6 MB, free: 6.203 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.106, allocations: 0 / 460.6 MB, free: 6.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003889/0.1063, allocations: 187.2 kB / 460.7 MB, free: 6.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.404e-05/0.1064, allocations: 77.11 kB / 460.8 MB, free: 5.914 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.1066, allocations: 141.8 kB / 461 MB, free: 5.766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/0.1066, allocations: 29.7 kB / 461 MB, free: 5.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.694e-05/0.1067, allocations: 84.14 kB / 461.1 MB, free: 5.645 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.289e-05/0.1067, allocations: 35.92 kB / 461.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.682e-05/0.1068, allocations: 21.72 kB / 461.1 MB, free: 5.582 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1069, allocations: 318.8 kB / 461.4 MB, free: 5.262 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.352e-05/0.107, allocations: 27.98 kB / 461.5 MB, free: 5.234 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.104e-05/0.1071, allocations: 31.92 kB / 461.5 MB, free: 5.203 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/0.1072, allocations: 124.1 kB / 461.6 MB, free: 5.066 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1072, allocations: 0 / 461.6 MB, free: 5.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002303/0.1074, allocations: 163.3 kB / 461.8 MB, free: 4.895 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.599e-05/0.1075, allocations: 37.69 kB / 461.8 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.1075, allocations: 4.234 kB / 461.8 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.1075, allocations: 0 / 461.8 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.996e-05/0.1076, allocations: 7.938 kB / 461.8 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.1076, allocations: 3.984 kB / 461.8 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.211e-05/0.1077, allocations: 4 kB / 461.8 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.1077, allocations: 4 kB / 461.8 MB, free: 4.828 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.0001502/0.1078, allocations: 158.5 kB / 462 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.117e-05/0.1079, allocations: 19.88 kB / 462 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.298e-05/0.1079, allocations: 8.375 kB / 462 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.1079, allocations: 0 / 462 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1079, allocations: 0 / 462 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1079, allocations: 4 kB / 462 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00016/0.1081, allocations: 189.5 kB / 462.2 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.1081, allocations: 3.938 kB / 462.2 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.258e-05/0.1081, allocations: 8 kB / 462.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.1081, allocations: 0 / 462.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.1082, allocations: 7.984 kB / 462.2 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1082, allocations: 0 / 462.2 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1082, allocations: 0 / 462.2 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002929/0.1085, allocations: 214.8 kB / 462.4 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.394e-05/0.1085, allocations: 92.97 kB / 462.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.805e-05/0.1086, allocations: 8 kB / 462.5 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.9e-05/0.1086, allocations: 4 kB / 462.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.569e-05/0.1087, allocations: 0 / 462.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.1087, allocations: 4 kB / 462.5 MB, free: 4.016 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.175e-05/0.1088, allocations: 115 kB / 462.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1088, allocations: 0 / 462.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002501/0.109, allocations: 51.83 kB / 462.7 MB, free: 3.855 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.001462/0.1105, allocations: 0.9037 MB / 463.6 MB, free: 2.977 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002707/0.1108, allocations: 163.3 kB / 463.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1108, allocations: 0 / 463.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.1109, allocations: 123.4 kB / 463.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001947/0.1111, allocations: 12 kB / 463.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.1131, allocations: 1.664 MB / 465.6 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.1134, allocations: 0.6922 MB / 466.3 MB, free: 196 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.265e-05/0.1135, allocations: 16.12 kB / 466.3 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.113e-05/0.1135, allocations: 23.42 kB / 466.3 MB, free: 156 kB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1135, allocations: 0 / 466.3 MB, free: 156 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0257/0.1392, allocations: 2.937 MB / 469.2 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.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.