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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002029/0.002029, allocations: 219.8 kB / 22.25 MB, free: 5.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.479/1.479, allocations: 230.6 MB / 256 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.01466/0.01466, allocations: 3.278 MB / 315.7 MB, free: 15.63 MB / 254.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: ExternData requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 71.89 kB / 439.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09724/0.09935, allocations: 54.38 MB / 493.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.002976/0.1023, allocations: 1.498 MB / 495.4 MB, free: 3.977 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002107/0.1044, allocations: 1.348 MB / 496.7 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.686e-05/0.1045, allocations: 4 kB / 496.7 MB, free: 2.617 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:123:3-145:14:writable] Warning: Pure function 'ExternData.MATFile' contains a call to impure function 'ExternData.Types.ExternMATFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003784/0.1049, allocations: 31.84 kB / 496.8 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.105, allocations: 31.84 kB / 496.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002932/0.1053, allocations: 79.78 kB / 496.9 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001261/0.1054, allocations: 55.84 kB / 496.9 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.808e-05/0.1054, allocations: 7.938 kB / 496.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.543e-05/0.1055, allocations: 31.92 kB / 497 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.1056, allocations: 19.91 kB / 497 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.496e-05/0.1057, allocations: 4 kB / 497 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.1058, allocations: 95.86 kB / 497.1 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.98e-05/0.1059, allocations: 19.92 kB / 497.1 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.327e-05/0.106, allocations: 15.94 kB / 497.1 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002406/0.1062, allocations: 131.6 kB / 497.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1062, allocations: 0 / 497.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1062, allocations: 0 / 497.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1062, allocations: 0 / 497.2 MB, free: 2.102 MB / 350.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.0006255/0.1068, allocations: 351.5 kB / 497.6 MB, free: 1.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.1069, allocations: 16.03 kB / 497.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.972e-05/0.1069, allocations: 42.67 kB / 497.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.051e-05/0.107, allocations: 8.891 kB / 497.7 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002726/0.1073, allocations: 130.4 kB / 497.8 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.1073, allocations: 384 / 497.8 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.1073, allocations: 4.375 kB / 497.8 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001761/0.1075, allocations: 103.5 kB / 497.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.1075, allocations: 0 / 497.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.1075, allocations: 4 kB / 497.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.167e-06/0.1075, allocations: 0 / 497.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.402e-05/0.1076, allocations: 65.62 kB / 498 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002046/0.1078, allocations: 144.7 kB / 498.1 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.1079, allocations: 72.27 kB / 498.2 MB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.443e-05/0.108, allocations: 66.53 kB / 498.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.108, allocations: 0 / 498.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002104/0.1082, allocations: 146.7 kB / 498.4 MB, free: 0.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/0.1082, allocations: 0 / 498.4 MB, free: 0.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004265/0.1086, allocations: 258.6 kB / 498.6 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/0.1088, allocations: 81.09 kB / 498.7 MB, free: 428 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.1089, allocations: 151.9 kB / 498.9 MB, free: 268 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.1089, allocations: 29.7 kB / 498.9 MB, free: 232 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.453e-05/0.109, allocations: 88.3 kB / 499 MB, free: 140 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.825e-05/0.109, allocations: 23.83 kB / 499 MB, free: 116 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.49e-05/0.1091, allocations: 21.72 kB / 499 MB, free: 88 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.1093, allocations: 322.8 kB / 499.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.202e-05/0.1094, allocations: 57.69 kB / 499.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.551e-05/0.1094, allocations: 57.69 kB / 499.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.1096, allocations: 128.2 kB / 499.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1096, allocations: 0 / 499.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002581/0.1098, allocations: 197 kB / 499.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.764e-05/0.1099, allocations: 41.69 kB / 499.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1099, allocations: 4 kB / 499.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.1099, allocations: 0 / 499.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.372e-05/0.11, allocations: 11.94 kB / 499.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.11, allocations: 0 / 499.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.215e-05/0.11, allocations: 7.938 kB / 499.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.1101, allocations: 0 / 499.8 MB, free: 15.21 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 0.0001761/0.1102, allocations: 159.6 kB / 500 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.91e-05/0.1103, allocations: 15.97 kB / 500 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.319e-05/0.1103, allocations: 16.34 kB / 0.4883 GB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.1103, allocations: 0 / 0.4883 GB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1103, allocations: 4 kB / 0.4883 GB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1103, allocations: 0 / 0.4883 GB, free: 15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001683/0.1105, allocations: 148.7 kB / 0.4884 GB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.1105, allocations: 3.938 kB / 0.4884 GB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.811e-05/0.1105, allocations: 0 / 0.4884 GB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.1105, allocations: 4 kB / 0.4884 GB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.1105, allocations: 4 kB / 0.4885 GB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1105, allocations: 0 / 0.4885 GB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1105, allocations: 4 kB / 0.4885 GB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003363/0.1109, allocations: 256.5 kB / 0.4887 GB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.267e-05/0.1109, allocations: 19.92 kB / 0.4887 GB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.622e-05/0.1109, allocations: 0 / 0.4887 GB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.137e-05/0.111, allocations: 4 kB / 0.4887 GB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.932e-05/0.111, allocations: 8 kB / 0.4887 GB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.111, allocations: 3.984 kB / 0.4887 GB, free: 14.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.406e-05/0.1111, allocations: 107.3 kB / 0.4888 GB, free: 14.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1111, allocations: 0 / 0.4888 GB, free: 14.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002841/0.1114, allocations: 43.92 kB / 0.4889 GB, free: 14.34 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.002409/0.1138, allocations: 0.9454 MB / 0.4898 GB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003511/0.1142, allocations: 202.7 kB / 0.49 GB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1142, allocations: 8 kB / 0.49 GB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.1143, allocations: 129.1 kB / 0.4901 GB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.1146, allocations: 4 kB / 0.4901 GB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002306/0.1169, allocations: 1.838 MB / 0.4919 GB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.509e-05/0.117, allocations: 79.52 kB / 0.492 GB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.276e-05/0.117, allocations: 8.141 kB / 0.492 GB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.093e-05/0.1171, allocations: 31.42 kB / 0.492 GB, free: 10.95 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.1171, allocations: 0 / 0.492 GB, free: 10.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0339/0.151, allocations: 3.62 MB / 0.4956 GB, free: 7.371 MB / 366.1 MB Error: Error building simulator. Build log: cmd: cd '891.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/OpenModelicaLibraryTesting/ExternData_ExternData.Examples.MATTest/891.fmutmp/sources/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/891.fmutmp/sources/../binaries/linux64 -- Linking /home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/Resources/Library/linux64/libED_MATFile.a -- Linking /home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/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.2.0/Resources/Library/linux64/libED_MATFile.a;/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/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 \"891\" in directory /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ExternData_ExternData.Examples.MATTest/891.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.9664658989931922] Failed to read output from testmodel.py, exit status != 0: 0.5724103309912607 0.5944479429999999 0.48509213399999995 Calling exit ...