Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices2b.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.381/2.381, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.772e-05/1.787e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.3487, allocations: 54.85 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1536/0.5023, allocations: 83.03 MB / 441.1 MB, free: 11.72 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.5026, allocations: 67.91 kB / 441.2 MB, free: 11.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1119/0.6146, allocations: 25.27 MB / 466.5 MB, free: 2.344 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.6147, allocations: 0 / 466.5 MB, free: 2.344 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.6147, allocations: 0 / 466.5 MB, free: 2.344 MB / 394.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.00083/0.6155, allocations: 444 kB / 466.9 MB, free: 1.859 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.6156, allocations: 12.03 kB / 466.9 MB, free: 1.848 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.245e-05/0.6156, allocations: 4 kB / 466.9 MB, free: 1.844 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.6158, allocations: 159.1 kB / 467.1 MB, free: 1.648 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.6158, allocations: 0 / 467.1 MB, free: 1.648 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.816e-06/0.6158, allocations: 0 / 467.1 MB, free: 1.648 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.748e-05/0.6159, allocations: 7.938 kB / 467.1 MB, free: 1.641 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.3e-05/0.616, allocations: 29.7 kB / 467.1 MB, free: 1.605 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.616, allocations: 3.953 kB / 467.1 MB, free: 1.602 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.616, allocations: 0 / 467.1 MB, free: 1.602 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.319e-06/0.616, allocations: 0 / 467.1 MB, free: 1.602 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001563/0.6162, allocations: 130.2 kB / 467.3 MB, free: 1.438 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.597e-05/0.6162, allocations: 18.61 kB / 467.3 MB, free: 1.41 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.479e-05/0.6163, allocations: 4.859 kB / 467.3 MB, free: 1.402 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.356e-06/0.6163, allocations: 0 / 467.3 MB, free: 1.402 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.154e-05/0.6163, allocations: 64.2 kB / 467.3 MB, free: 1.324 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.433e-06/0.6163, allocations: 0 / 467.3 MB, free: 1.324 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001838/0.6165, allocations: 33.77 kB / 467.4 MB, free: 1.285 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.704e-05/0.6166, allocations: 85.12 kB / 467.5 MB, free: 1.184 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.358e-05/0.6167, allocations: 85 kB / 467.5 MB, free: 1.094 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.6167, allocations: 25.7 kB / 467.6 MB, free: 1.062 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.13e-05/0.6168, allocations: 150.6 kB / 467.7 MB, free: 0.9141 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.6168, allocations: 0 / 467.7 MB, free: 0.9141 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-06/0.6168, allocations: 0 / 467.7 MB, free: 0.9141 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.617, allocations: 322.8 kB / 468 MB, free: 0.5898 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.795e-06/0.617, allocations: 0 / 468 MB, free: 0.5898 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.611e-06/0.617, allocations: 4 kB / 468 MB, free: 0.5859 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.28e-05/0.617, allocations: 0 / 468 MB, free: 0.5859 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.6171, allocations: 0 / 468 MB, free: 0.5859 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.24e-05/0.6172, allocations: 41.62 kB / 468.1 MB, free: 0.5391 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.624e-05/0.6172, allocations: 30.95 kB / 468.1 MB, free: 0.5039 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.6172, allocations: 0 / 468.1 MB, free: 0.5039 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.6172, allocations: 4 kB / 468.1 MB, free: 0.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.333e-06/0.6173, allocations: 0 / 468.1 MB, free: 0.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.077e-06/0.6173, allocations: 0 / 468.1 MB, free: 0.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.875e-05/0.6173, allocations: 4.031 kB / 468.1 MB, free: 0.4961 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.044e-06/0.6173, allocations: 7.938 kB / 468.1 MB, free: 500 kB / 394.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 9.435e-05/0.6174, allocations: 134.6 kB / 468.3 MB, free: 352 kB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.424e-05/0.6175, allocations: 41.69 kB / 468.3 MB, free: 304 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.6175, allocations: 0 / 468.3 MB, free: 304 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.066e-05/0.6176, allocations: 3.75 kB / 468.3 MB, free: 304 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.6176, allocations: 3.984 kB / 468.3 MB, free: 300 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.6176, allocations: 0 / 468.3 MB, free: 300 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.6176, allocations: 3.953 kB / 468.3 MB, free: 296 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.011e-05/0.6177, allocations: 130.3 kB / 468.4 MB, free: 128 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.612e-05/0.6177, allocations: 4 kB / 468.4 MB, free: 124 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.282e-06/0.6177, allocations: 0 / 468.4 MB, free: 124 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.6178, allocations: 0 / 468.4 MB, free: 124 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.6178, allocations: 0 / 468.4 MB, free: 124 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.6178, allocations: 3.938 kB / 468.4 MB, free: 120 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.6178, allocations: 4 kB / 468.4 MB, free: 116 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001076/0.6179, allocations: 65.08 kB / 468.5 MB, free: 32 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2945/0.9125, allocations: 81.14 kB / 468.6 MB, free: 102.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.84e-05/0.9125, allocations: 0 / 468.6 MB, free: 102.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.589e-05/0.9126, allocations: 0 / 468.6 MB, free: 102.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.26e-05/0.9126, allocations: 0.9062 kB / 468.6 MB, free: 102.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.9126, allocations: 1.344 kB / 468.6 MB, free: 102.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.031e-05/0.9127, allocations: 76.16 kB / 468.7 MB, free: 102 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.9127, allocations: 0 / 468.7 MB, free: 102 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001093/0.9138, allocations: 198.9 kB / 468.9 MB, free: 102 MB / 394.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.00186/0.9156, allocations: 0.8709 MB / 469.7 MB, free: 101.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001156/0.9158, allocations: 61.41 kB / 469.8 MB, free: 101.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.9158, allocations: 0.5312 kB / 469.8 MB, free: 101.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.931e-05/0.9158, allocations: 59 kB / 469.8 MB, free: 101.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001075/0.916, allocations: 1.094 kB / 469.8 MB, free: 101.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005752/0.9166, allocations: 183.7 kB / 470 MB, free: 101.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.9167, allocations: 0.6748 MB / 470.7 MB, free: 100.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.878e-05/0.9167, allocations: 9.188 kB / 470.7 MB, free: 100.4 MB / 394.7 MB Notification: Performance of SimCode: time 1.443e-06/0.9167, allocations: 0 / 470.7 MB, free: 100.4 MB / 394.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=7 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"." -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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_TestMatrices2b.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.o -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/" "-L/var/lib/hudson/.openmodelica/binaries/Modelica" -Wl,-rpath="/var/lib/hudson/.openmodelica/binaries/Modelica" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library" -lModelicaExternalC -lOMCppModelicaUtilities_static -lOMCppDgesv_static /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc/cpp/libModelicaExternalC.a(ModelicaInternal.c.o): In function `ModelicaInternal_temporaryFileName': /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaInternal.c:614: warning: the use of `tmpnam' is dangerous, better use `mkstemp' OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.o: In function `Functions::Modelica_Math_Matrices_LAPACK_dgetri(BaseArray&, BaseArray&, Modelica_Math_Matrices_LAPACK_dgetriType&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices2b/./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:987: undefined reference to `dgetri_' OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.o: In function `Functions::Modelica_Math_Matrices_LAPACK_dgesvd(BaseArray&, Modelica_Math_Matrices_LAPACK_dgesvdType&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices2b/./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:908: undefined reference to `dgesvd_' clang: error: linker command failed with exit code 1 (use -v to see invocation) ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2b_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2b.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices2b.fmu] Error 1