Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.425/2.425, allocations: 234.9 MB / 250.5 MB, free: 9.672 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006504/0.0006505, allocations: 12 kB / 314.5 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.384/0.3847, allocations: 54.86 MB / 369.3 MB, free: 12.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1563/0.541, allocations: 81.45 MB / 450.8 MB, free: 11.11 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.5414, allocations: 67.97 kB / 450.9 MB, free: 11.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01321/0.5546, allocations: 2.76 MB / 453.6 MB, free: 8.277 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.534e-06/0.5546, allocations: 0 / 453.6 MB, free: 8.277 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.5547, allocations: 8 kB / 453.6 MB, free: 8.27 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005022/0.5552, allocations: 384.9 kB / 454 MB, free: 7.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.5552, allocations: 8.031 kB / 454 MB, free: 7.832 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.822e-05/0.5553, allocations: 30.56 kB / 454 MB, free: 7.793 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.453e-05/0.5553, allocations: 3.938 kB / 454 MB, free: 7.789 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.5554, allocations: 167.1 kB / 454.2 MB, free: 7.586 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.5555, allocations: 0 / 454.2 MB, free: 7.586 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.5555, allocations: 0 / 454.2 MB, free: 7.586 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.481e-05/0.5556, allocations: 33.66 kB / 454.2 MB, free: 7.547 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.5556, allocations: 4 kB / 454.2 MB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.5556, allocations: 0 / 454.2 MB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.5557, allocations: 0 / 454.2 MB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.964e-05/0.5557, allocations: 3.938 kB / 454.2 MB, free: 7.539 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001617/0.5559, allocations: 149.7 kB / 454.4 MB, free: 7.344 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.499e-05/0.5559, allocations: 18.61 kB / 454.4 MB, free: 7.316 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.105e-05/0.5559, allocations: 0 / 454.4 MB, free: 7.316 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.19e-05/0.556, allocations: 64.2 kB / 454.5 MB, free: 7.238 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.332e-06/0.556, allocations: 0 / 454.5 MB, free: 7.238 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001876/0.5562, allocations: 75.34 kB / 454.5 MB, free: 7.152 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/0.5563, allocations: 77.11 kB / 454.6 MB, free: 7.059 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.016e-05/0.5563, allocations: 89 kB / 454.7 MB, free: 6.965 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.5564, allocations: 25.7 kB / 454.7 MB, free: 6.934 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.661e-05/0.5564, allocations: 150.6 kB / 454.9 MB, free: 6.785 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.658e-05/0.5565, allocations: 0 / 454.9 MB, free: 6.785 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-06/0.5565, allocations: 128 / 454.9 MB, free: 6.785 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.5566, allocations: 314.8 kB / 455.2 MB, free: 6.469 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.081e-05/0.5566, allocations: 0 / 455.2 MB, free: 6.469 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.107e-06/0.5566, allocations: 4 kB / 455.2 MB, free: 6.465 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.728e-05/0.5567, allocations: 29.7 kB / 455.2 MB, free: 6.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.5567, allocations: 0 / 455.2 MB, free: 6.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.235e-05/0.5568, allocations: 67.33 kB / 455.3 MB, free: 6.352 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.5569, allocations: 29.7 kB / 455.3 MB, free: 6.316 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.5569, allocations: 0 / 455.3 MB, free: 6.316 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.5569, allocations: 4.094 kB / 455.3 MB, free: 6.312 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.693e-06/0.5569, allocations: 4 kB / 455.3 MB, free: 6.309 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.5569, allocations: 7.938 kB / 455.3 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.852e-05/0.557, allocations: 0 / 455.3 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.557, allocations: 0 / 455.3 MB, free: 6.301 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.874e-05/0.5571, allocations: 135.5 kB / 455.5 MB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.151e-05/0.5571, allocations: 3.984 kB / 455.5 MB, free: 6.148 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.609e-05/0.5571, allocations: 3.125 kB / 455.5 MB, free: 6.145 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.5571, allocations: 0 / 455.5 MB, free: 6.145 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.5572, allocations: 4 kB / 455.5 MB, free: 6.141 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.5572, allocations: 3.953 kB / 455.5 MB, free: 6.137 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.5573, allocations: 149.7 kB / 455.6 MB, free: 5.941 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.5573, allocations: 0 / 455.6 MB, free: 5.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.072e-06/0.5573, allocations: 3.938 kB / 455.6 MB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.732e-06/0.5573, allocations: 7.984 kB / 455.6 MB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.5573, allocations: 0 / 455.6 MB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.5574, allocations: 0 / 455.6 MB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.5574, allocations: 0 / 455.6 MB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.5575, allocations: 98.73 kB / 455.7 MB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.432e-05/0.5576, allocations: 85.03 kB / 455.8 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.5576, allocations: 0 / 455.8 MB, free: 5.707 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.117e-05/0.5576, allocations: 4 kB / 455.8 MB, free: 5.703 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.715e-05/0.5576, allocations: 0 / 455.8 MB, free: 5.703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.5576, allocations: 0 / 455.8 MB, free: 5.703 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.658e-05/0.5577, allocations: 75.28 kB / 455.9 MB, free: 5.629 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.5577, allocations: 0 / 455.9 MB, free: 5.629 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004905/0.5582, allocations: 83.91 kB / 456 MB, free: 5.547 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009958/0.5592, allocations: 0.7445 MB / 456.7 MB, free: 4.777 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001045/0.5593, allocations: 59.34 kB / 456.8 MB, free: 4.707 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.5593, allocations: 0 / 456.8 MB, free: 4.707 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.508e-05/0.5594, allocations: 55.41 kB / 456.8 MB, free: 4.641 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.661e-05/0.5595, allocations: 128 / 456.8 MB, free: 4.641 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004095/0.5599, allocations: 178 kB / 457 MB, free: 4.418 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.5602, allocations: 0.6731 MB / 457.7 MB, free: 3.719 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.604e-05/0.5602, allocations: 7.438 kB / 457.7 MB, free: 3.711 MB / 378.7 MB Notification: Performance of SimCode: time 7.71e-07/0.5603, allocations: 0 / 457.7 MB, free: 3.711 MB / 378.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning generated. clang++ -shared -o ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.o -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp" -Wl,--no-undefined -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/" "-L/var/lib/hudson/.openmodelica/binaries/Modelica" -Wl,-rpath="/var/lib/hudson/.openmodelica/binaries/Modelica" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library" -lModelicaExternalC -lOMCppSystem_static -lOMCppMath_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -lOMCppModelicaUtilities_static -lOMCppDgesv_static /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp/libModelicaExternalC.a(ModelicaInternal.c.o): In function `ModelicaInternal_temporaryFileName': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaInternal.c:652: warning: the use of `tmpnam' is dangerous, better use `mkstemp' OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.o: In function `Functions::Modelica_Math_Matrices_LAPACK_dgglse__vec(BaseArray&, BaseArray&, BaseArray&, BaseArray&, Modelica_Math_Matrices_LAPACK_dgglse__vecType&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices/./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesFunctions.cpp:241: undefined reference to `dgglse_' OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.o: In function `Functions::Modelica_Math_Matrices_LAPACK_dgelsy__vec(BaseArray&, BaseArray&, double, Modelica_Math_Matrices_LAPACK_dgelsy__vecType&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices/./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesFunctions.cpp:202: undefined reference to `dgelsy_' clang: error: linker command failed with exit code 1 (use -v to see invocation) ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices.fmu] Error 1