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.374/2.374, allocations: 235 MB / 248 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.888e-05/3.907e-05, allocations: 4 kB / 309.8 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4062/0.4063, allocations: 54.84 MB / 364.6 MB, free: 5.402 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1966/0.6029, allocations: 81.36 MB / 446 MB, free: 15.03 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.6032, allocations: 63.97 kB / 446 MB, free: 14.96 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01289/0.6162, allocations: 2.747 MB / 448.8 MB, free: 12.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.6162, allocations: 0.8438 kB / 448.8 MB, free: 12.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.6162, allocations: 0 / 448.8 MB, free: 12.23 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.0004293/0.6167, allocations: 384.1 kB / 449.2 MB, free: 11.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.6167, allocations: 12.03 kB / 449.2 MB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.571e-05/0.6168, allocations: 30.56 kB / 449.2 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.488e-05/0.6168, allocations: 0 / 449.2 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.6169, allocations: 167.1 kB / 449.4 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.617, allocations: 0 / 449.4 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.617, allocations: 7.938 kB / 449.4 MB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.552e-05/0.6171, allocations: 30.5 kB / 449.4 MB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.6171, allocations: 4 kB / 449.4 MB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.6171, allocations: 0 / 449.4 MB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.6171, allocations: 0 / 449.4 MB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.542e-05/0.6172, allocations: 7.938 kB / 449.4 MB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001452/0.6173, allocations: 141.7 kB / 449.6 MB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.149e-05/0.6174, allocations: 18.61 kB / 449.6 MB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.13e-05/0.6174, allocations: 12.84 kB / 449.6 MB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.366e-06/0.6174, allocations: 0 / 449.6 MB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.305e-05/0.6175, allocations: 64.97 kB / 449.6 MB, free: 11.19 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.583e-06/0.6175, allocations: 0 / 449.6 MB, free: 11.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001671/0.6177, allocations: 63.41 kB / 449.7 MB, free: 11.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.6178, allocations: 77.11 kB / 449.8 MB, free: 11.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.959e-05/0.6178, allocations: 85 kB / 449.9 MB, free: 10.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.6178, allocations: 25.7 kB / 449.9 MB, free: 10.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.401e-05/0.6179, allocations: 154.6 kB / 450 MB, free: 10.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.102e-05/0.618, allocations: 0 / 450 MB, free: 10.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-06/0.618, allocations: 5.062 kB / 450 MB, free: 10.74 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.6181, allocations: 318.8 kB / 450.4 MB, free: 10.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.054e-05/0.6181, allocations: 0 / 450.4 MB, free: 10.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.311e-05/0.6181, allocations: 4 kB / 450.4 MB, free: 10.42 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.026e-05/0.6182, allocations: 25.7 kB / 450.4 MB, free: 10.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.6182, allocations: 0 / 450.4 MB, free: 10.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.755e-05/0.6183, allocations: 59.41 kB / 450.4 MB, free: 10.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.391e-05/0.6184, allocations: 37.62 kB / 450.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.6184, allocations: 5.031 kB / 450.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.6184, allocations: 3.953 kB / 450.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.413e-06/0.6184, allocations: 0 / 450.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.6184, allocations: 5.406 kB / 450.5 MB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.695e-05/0.6185, allocations: 0 / 450.5 MB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-06/0.6185, allocations: 0 / 450.5 MB, free: 10.26 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 () * 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 8.577e-05/0.6186, allocations: 126.7 kB / 450.6 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.553e-05/0.6186, allocations: 11.98 kB / 450.6 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.374e-05/0.6186, allocations: 3.125 kB / 450.6 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.6186, allocations: 4 kB / 450.6 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.6187, allocations: 11.77 kB / 450.6 MB, free: 10.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.6187, allocations: 0 / 450.6 MB, free: 10.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001078/0.6188, allocations: 145.7 kB / 450.8 MB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.6188, allocations: 4 kB / 450.8 MB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.072e-06/0.6188, allocations: 0 / 450.8 MB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.6188, allocations: 0 / 450.8 MB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.6188, allocations: 0 / 450.8 MB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.6188, allocations: 0 / 450.8 MB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.6189, allocations: 3.938 kB / 450.8 MB, free: 9.898 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001345/0.619, allocations: 104.9 kB / 450.9 MB, free: 9.773 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.306e-05/0.6191, allocations: 81.02 kB / 451 MB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.474e-05/0.6191, allocations: 0 / 451 MB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.524e-05/0.6191, allocations: 4 kB / 451 MB, free: 9.672 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.841e-05/0.6191, allocations: 0 / 451 MB, free: 9.672 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.6191, allocations: 3.984 kB / 451 MB, free: 9.668 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.518e-05/0.6192, allocations: 79.23 kB / 451.1 MB, free: 9.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6192, allocations: 0 / 451.1 MB, free: 9.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004653/0.6197, allocations: 79.97 kB / 451.1 MB, free: 9.512 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) * 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.0009477/0.6206, allocations: 0.7419 MB / 451.9 MB, free: 8.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.959e-05/0.6208, allocations: 67.33 kB / 452 MB, free: 8.672 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.6208, allocations: 0 / 452 MB, free: 8.672 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.424e-05/0.6208, allocations: 55.41 kB / 452 MB, free: 8.605 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.351e-05/0.6209, allocations: 4.125 kB / 452 MB, free: 8.602 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003579/0.6213, allocations: 140.3 kB / 452.1 MB, free: 8.422 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002575/0.6216, allocations: 0.677 MB / 452.8 MB, free: 7.719 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.645e-05/0.6216, allocations: 7.438 kB / 452.8 MB, free: 7.711 MB / 378.7 MB Notification: Performance of SimCode: time 7.92e-07/0.6216, allocations: 0 / 452.8 MB, free: 7.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 -lOMCppSystem_static -lOMCppMath_static -lOMCppModelicaUtilities_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -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 -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:622: 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