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.31/2.31, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.68e-05/3.683e-05, allocations: 4 kB / 305 MB, free: 5.582 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4057/0.4058, allocations: 54.86 MB / 359.9 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1552/0.5611, allocations: 81.35 MB / 441.2 MB, free: 15.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/0.5614, allocations: 63.97 kB / 441.3 MB, free: 15.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01284/0.5742, allocations: 2.686 MB / 444 MB, free: 12.81 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5743, allocations: 0 / 444 MB, free: 12.81 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.78e-06/0.5743, allocations: 0 / 444 MB, free: 12.81 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.0004107/0.5747, allocations: 372.1 kB / 444.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.5748, allocations: 12.03 kB / 444.3 MB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.849e-05/0.5749, allocations: 30.56 kB / 444.4 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.607e-05/0.5749, allocations: 8 kB / 444.4 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.575, allocations: 160.4 kB / 444.5 MB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.575, allocations: 3.984 kB / 444.5 MB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.5751, allocations: 0.8438 kB / 444.5 MB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.194e-05/0.5752, allocations: 37.59 kB / 444.6 MB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.5752, allocations: 3.984 kB / 444.6 MB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.5752, allocations: 0 / 444.6 MB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.5752, allocations: 0 / 444.6 MB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.017e-05/0.5752, allocations: 0 / 444.6 MB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001438/0.5754, allocations: 153.6 kB / 444.7 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.269e-05/0.5755, allocations: 14.58 kB / 444.7 MB, free: 11.87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.45e-05/0.5755, allocations: 16.94 kB / 444.8 MB, free: 11.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.586e-06/0.5755, allocations: 0.6562 kB / 444.8 MB, free: 11.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.082e-05/0.5756, allocations: 64.2 kB / 444.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.723e-06/0.5756, allocations: 0 / 444.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000165/0.5758, allocations: 63.34 kB / 444.9 MB, free: 11.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/0.5758, allocations: 81.14 kB / 445 MB, free: 11.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.013e-05/0.5759, allocations: 85 kB / 445 MB, free: 11.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.5759, allocations: 25.7 kB / 445.1 MB, free: 11.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.514e-05/0.576, allocations: 151.6 kB / 445.2 MB, free: 11.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.993e-05/0.576, allocations: 0 / 445.2 MB, free: 11.33 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.806e-06/0.576, allocations: 0 / 445.2 MB, free: 11.33 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.5761, allocations: 322.8 kB / 445.5 MB, free: 11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.007e-05/0.5762, allocations: 0 / 445.5 MB, free: 11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.104e-06/0.5762, allocations: 4 kB / 445.5 MB, free: 11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.476e-05/0.5762, allocations: 29.7 kB / 445.6 MB, free: 10.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.5762, allocations: 0 / 445.6 MB, free: 10.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.82e-05/0.5763, allocations: 55.41 kB / 445.6 MB, free: 10.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.201e-05/0.5764, allocations: 37.69 kB / 445.7 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.5764, allocations: 3.938 kB / 445.7 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.5764, allocations: 5.359 kB / 445.7 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.044e-06/0.5765, allocations: 1.75 kB / 445.7 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.5765, allocations: 0 / 445.7 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.912e-05/0.5765, allocations: 4.094 kB / 445.7 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.5765, allocations: 0 / 445.7 MB, free: 10.84 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.982e-05/0.5766, allocations: 130.7 kB / 445.8 MB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.508e-06/0.5766, allocations: 0 / 445.8 MB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.568e-05/0.5767, allocations: 3.125 kB / 445.8 MB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.5767, allocations: 0 / 445.8 MB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.5767, allocations: 7.953 kB / 445.8 MB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.5767, allocations: 0 / 445.8 MB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001069/0.5768, allocations: 149.7 kB / 446 MB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.5768, allocations: 0 / 446 MB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.172e-06/0.5768, allocations: 4 kB / 446 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.5769, allocations: 0 / 446 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.868e-06/0.5769, allocations: 9.719 kB / 446 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.5769, allocations: 0.8125 kB / 446 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.5769, allocations: 0 / 446 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001205/0.577, allocations: 94.78 kB / 446.1 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.195e-05/0.5771, allocations: 77.11 kB / 446.1 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.5771, allocations: 3.969 kB / 446.1 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.211e-05/0.5771, allocations: 4 kB / 446.1 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.747e-05/0.5772, allocations: 0.8125 kB / 446.1 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.5772, allocations: 4 kB / 446.1 MB, free: 10.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.173e-05/0.5772, allocations: 83.22 kB / 446.2 MB, free: 10.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5772, allocations: 0 / 446.2 MB, free: 10.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004769/0.5777, allocations: 75.94 kB / 446.3 MB, free: 10.11 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.0009413/0.5787, allocations: 0.7446 MB / 447 MB, free: 9.336 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001008/0.5788, allocations: 63.33 kB / 447.1 MB, free: 9.262 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5788, allocations: 0 / 447.1 MB, free: 9.262 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.873e-05/0.5788, allocations: 55.41 kB / 447.2 MB, free: 9.195 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001098/0.579, allocations: 5.406 kB / 447.2 MB, free: 9.191 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003631/0.5793, allocations: 140.3 kB / 447.3 MB, free: 9.012 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.5796, allocations: 0.6731 MB / 448 MB, free: 8.312 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.365e-05/0.5796, allocations: 11.56 kB / 448 MB, free: 8.301 MB / 378.7 MB Notification: Performance of SimCode: time 7.22e-07/0.5797, allocations: 0 / 448 MB, free: 8.301 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