Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.468/2.468, allocations: 270 MB / 282.6 MB, free: 1.895 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.689e-05/3.709e-05, allocations: 4 kB / 347 MB, free: 3.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4286/0.4286, allocations: 61.87 MB / 408.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1712/0.5999, allocations: 87.47 MB / 496.4 MB, free: 3.18 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002491/0.6002, allocations: 59.97 kB / 496.4 MB, free: 3.121 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01313/0.6133, allocations: 2.74 MB / 499.2 MB, free: 388 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.6134, allocations: 0 / 499.2 MB, free: 388 kB / 410.7 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.6134, allocations: 0 / 499.2 MB, free: 388 kB / 410.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.0004438/0.6139, allocations: 391.3 kB / 499.6 MB, free: 15.95 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.6139, allocations: 12.03 kB / 499.6 MB, free: 15.94 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.751e-05/0.614, allocations: 30.56 kB / 499.6 MB, free: 15.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.328e-05/0.614, allocations: 4 kB / 499.6 MB, free: 15.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.6141, allocations: 167 kB / 499.8 MB, free: 15.69 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.6141, allocations: 3.938 kB / 499.8 MB, free: 15.69 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.6142, allocations: 0 / 499.8 MB, free: 15.69 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.45e-05/0.6143, allocations: 29.7 kB / 499.8 MB, free: 15.65 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.6143, allocations: 0 / 499.8 MB, free: 15.65 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-06/0.6143, allocations: 0 / 499.8 MB, free: 15.65 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.6143, allocations: 0 / 499.8 MB, free: 15.65 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.023e-05/0.6143, allocations: 7.938 kB / 499.8 MB, free: 15.64 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001496/0.6145, allocations: 157.6 kB / 500 MB, free: 15.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.332e-05/0.6146, allocations: 14.58 kB / 500 MB, free: 15.42 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.832e-05/0.6146, allocations: 8.953 kB / 500 MB, free: 15.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.193e-05/0.6146, allocations: 3.938 kB / 500 MB, free: 15.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/0.6147, allocations: 56.27 kB / 0.4883 GB, free: 15.33 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 1.673e-06/0.6147, allocations: 0 / 0.4883 GB, free: 15.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001608/0.6148, allocations: 59.41 kB / 0.4884 GB, free: 15.26 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.6149, allocations: 85.12 kB / 0.4885 GB, free: 15.16 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.304e-05/0.615, allocations: 89 kB / 0.4885 GB, free: 15.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.615, allocations: 25.7 kB / 0.4886 GB, free: 15.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.244e-05/0.6151, allocations: 150.6 kB / 0.4887 GB, free: 14.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.159e-05/0.6151, allocations: 0 / 0.4887 GB, free: 14.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-06/0.6151, allocations: 3.938 kB / 0.4887 GB, free: 14.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.6152, allocations: 314.8 kB / 0.489 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.009e-05/0.6152, allocations: 0 / 0.489 GB, free: 14.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.492e-06/0.6153, allocations: 0 / 0.489 GB, free: 14.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.418e-05/0.6153, allocations: 33.77 kB / 0.489 GB, free: 14.53 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.6153, allocations: 0 / 0.489 GB, free: 14.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.773e-05/0.6154, allocations: 67.28 kB / 0.4891 GB, free: 14.45 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.612e-05/0.6155, allocations: 33.7 kB / 0.4891 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.6155, allocations: 0 / 0.4891 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.6155, allocations: 4 kB / 0.4891 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.553e-06/0.6155, allocations: 0 / 0.4891 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.6155, allocations: 0 / 0.4891 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.688e-05/0.6156, allocations: 0 / 0.4891 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.6156, allocations: 8.031 kB / 0.4892 GB, free: 14.4 MB / 426.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.74e-05/0.6157, allocations: 130.7 kB / 0.4893 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.158e-05/0.6157, allocations: 3.953 kB / 0.4893 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.721e-05/0.6157, allocations: 3.125 kB / 0.4893 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.6157, allocations: 7.984 kB / 0.4893 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.6157, allocations: 0 / 0.4893 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.6158, allocations: 0 / 0.4893 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.6159, allocations: 141.7 kB / 0.4894 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.6159, allocations: 0 / 0.4894 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.042e-06/0.6159, allocations: 0 / 0.4894 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.6159, allocations: 7.953 kB / 0.4894 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.6159, allocations: 4 kB / 0.4894 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.6159, allocations: 3.984 kB / 0.4894 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.6159, allocations: 3.984 kB / 0.4895 GB, free: 14.03 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001159/0.6161, allocations: 90.78 kB / 0.4895 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.417e-05/0.6161, allocations: 81.09 kB / 0.4896 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.822e-05/0.6162, allocations: 11.88 kB / 0.4896 GB, free: 13.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.216e-05/0.6162, allocations: 4.031 kB / 0.4896 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.69e-05/0.6162, allocations: 0 / 0.4896 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.712e-06/0.6162, allocations: 4 kB / 0.4896 GB, free: 13.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.378e-05/0.6163, allocations: 75.28 kB / 0.4897 GB, free: 13.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6163, allocations: 0 / 0.4897 GB, free: 13.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004775/0.6168, allocations: 87.86 kB / 0.4898 GB, free: 13.64 MB / 426.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.00096/0.6177, allocations: 0.7419 MB / 0.4905 GB, free: 12.88 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001037/0.6179, allocations: 59.34 kB / 0.4906 GB, free: 12.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.6179, allocations: 0 / 0.4906 GB, free: 12.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.104e-05/0.6179, allocations: 55.41 kB / 0.4906 GB, free: 12.74 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001054/0.618, allocations: 7.953 kB / 0.4906 GB, free: 12.73 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000363/0.6184, allocations: 136.5 kB / 0.4908 GB, free: 12.55 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/0.6187, allocations: 0.6731 MB / 0.4914 GB, free: 11.86 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.504e-05/0.6187, allocations: 11.56 kB / 0.4914 GB, free: 11.84 MB / 426.7 MB Notification: Performance of SimCode: time 6.61e-07/0.6187, allocations: 4 kB / 0.4914 GB, free: 11.84 MB / 426.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"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_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_trunk_cpp_ModelicaTest_Math_TestMatrices.so OMCppModelicaTest_trunk_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 trunk" "-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 trunk/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/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_trunk_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_trunk_cpp_ModelicaTest.Math.TestMatrices/./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatricesFunctions.cpp:253: undefined reference to `dgglse_' OMCppModelicaTest_trunk_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_trunk_cpp_ModelicaTest.Math.TestMatrices/./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatricesFunctions.cpp:214: undefined reference to `dgelsy_' clang: error: linker command failed with exit code 1 (use -v to see invocation) ModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Math_TestMatrices.fmu] Error 1