Running command: "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.551/2.551, allocations: 270 MB / 282.7 MB, free: 1.824 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4e-05/4.021e-05, allocations: 0 / 347 MB, free: 3.137 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4548/0.4549, allocations: 61.87 MB / 408.9 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1708/0.6257, allocations: 87.54 MB / 496.5 MB, free: 3.02 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.6261, allocations: 63.97 kB / 496.5 MB, free: 2.957 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02263/0.6487, allocations: 4.331 MB / 0.4891 GB, free: 14.62 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.6488, allocations: 0 / 0.4891 GB, free: 14.62 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.6488, allocations: 0 / 0.4891 GB, free: 14.62 MB / 426.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.0005313/0.6493, allocations: 400.1 kB / 0.4895 GB, free: 14.18 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.6494, allocations: 8.031 kB / 0.4895 GB, free: 14.17 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.608e-05/0.6494, allocations: 30.56 kB / 0.4895 GB, free: 14.13 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.591e-05/0.6495, allocations: 0 / 0.4895 GB, free: 14.13 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.6496, allocations: 167 kB / 0.4897 GB, free: 13.93 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.6496, allocations: 3.953 kB / 0.4897 GB, free: 13.92 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.452e-05/0.6496, allocations: 4 kB / 0.4897 GB, free: 13.92 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.254e-05/0.6497, allocations: 29.69 kB / 0.4897 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.6498, allocations: 0 / 0.4897 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.6498, allocations: 0 / 0.4897 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.6498, allocations: 0 / 0.4897 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.841e-05/0.6498, allocations: 4 kB / 0.4897 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001453/0.65, allocations: 141.7 kB / 0.4899 GB, free: 13.69 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.195e-05/0.6501, allocations: 31.09 kB / 0.4899 GB, free: 13.65 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.151e-05/0.6501, allocations: 8.797 kB / 0.4899 GB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.6501, allocations: 0 / 0.4899 GB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.708e-05/0.6502, allocations: 64.2 kB / 0.49 GB, free: 13.56 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 1.623e-06/0.6502, allocations: 0 / 0.49 GB, free: 13.56 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001834/0.6504, allocations: 67.44 kB / 0.49 GB, free: 13.48 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/0.6504, allocations: 77.11 kB / 0.4901 GB, free: 13.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.063e-05/0.6505, allocations: 89.03 kB / 0.4902 GB, free: 13.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.6505, allocations: 25.7 kB / 0.4902 GB, free: 13.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.912e-05/0.6506, allocations: 158.6 kB / 0.4904 GB, free: 13.11 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.6506, allocations: 0 / 0.4904 GB, free: 13.11 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-06/0.6506, allocations: 0 / 0.4904 GB, free: 13.11 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.6508, allocations: 310.8 kB / 0.4907 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.168e-05/0.6508, allocations: 3.938 kB / 0.4907 GB, free: 12.79 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.785e-06/0.6508, allocations: 0 / 0.4907 GB, free: 12.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.801e-05/0.6509, allocations: 37.75 kB / 0.4907 GB, free: 12.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.6509, allocations: 3.938 kB / 0.4907 GB, free: 12.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.825e-05/0.651, allocations: 59.41 kB / 0.4908 GB, free: 12.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.107e-05/0.651, allocations: 33.66 kB / 0.4908 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.651, allocations: 0 / 0.4908 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.6511, allocations: 0 / 0.4908 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-06/0.6511, allocations: 0 / 0.4908 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.6511, allocations: 0 / 0.4908 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.153e-05/0.6511, allocations: 4 kB / 0.4908 GB, free: 12.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.6511, allocations: 3.984 kB / 0.4908 GB, free: 12.63 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 9.462e-05/0.6512, allocations: 134.7 kB / 0.4909 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.245e-05/0.6513, allocations: 4 kB / 0.4909 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.176e-05/0.6513, allocations: 7.078 kB / 0.4909 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.6513, allocations: 3.984 kB / 0.4909 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.6513, allocations: 0 / 0.4909 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.6513, allocations: 0 / 0.4909 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001421/0.6515, allocations: 145.7 kB / 0.4911 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.6515, allocations: 0 / 0.4911 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.6515, allocations: 4 kB / 0.4911 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.6515, allocations: 4 kB / 0.4911 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.6515, allocations: 0 / 0.4911 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.6516, allocations: 3.953 kB / 0.4911 GB, free: 12.26 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.6516, allocations: 0 / 0.4911 GB, free: 12.26 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001389/0.6517, allocations: 98.77 kB / 0.4912 GB, free: 12.14 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.942e-05/0.6518, allocations: 81.05 kB / 0.4913 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.6518, allocations: 0 / 0.4913 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.301e-05/0.6518, allocations: 0 / 0.4913 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.075e-05/0.6519, allocations: 11.98 kB / 0.4913 GB, free: 12.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.6519, allocations: 0 / 0.4913 GB, free: 12.03 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.728e-05/0.6519, allocations: 75.28 kB / 0.4913 GB, free: 11.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.6519, allocations: 0 / 0.4913 GB, free: 11.96 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005562/0.6525, allocations: 87.92 kB / 0.4914 GB, free: 11.87 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.001042/0.6535, allocations: 0.7381 MB / 0.4921 GB, free: 11.11 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001159/0.6537, allocations: 59.41 kB / 0.4922 GB, free: 11.04 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.6537, allocations: 0 / 0.4922 GB, free: 11.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.132e-05/0.6538, allocations: 55.47 kB / 0.4923 GB, free: 10.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001106/0.6539, allocations: 11.95 kB / 0.4923 GB, free: 10.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004182/0.6543, allocations: 140.5 kB / 0.4924 GB, free: 10.78 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.6546, allocations: 0.677 MB / 0.4931 GB, free: 10.08 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.663e-05/0.6546, allocations: 7.438 kB / 0.4931 GB, free: 10.07 MB / 426.7 MB Notification: Performance of SimCode: time 2.865e-06/0.6546, allocations: 0 / 0.4931 GB, free: 10.07 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_TestPolynomialsCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestPolynomialsCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestPolynomialsCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestPolynomialsFMU.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_TestPolynomials.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestPolynomialsCalcHelperMain.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_TestPolynomialsCalcHelperMain.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.TestPolynomials/./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_TestPolynomialsFunctions.cpp:159: undefined reference to `dgelsy_' clang: error: linker command failed with exit code 1 (use -v to see invocation) ModelicaTest_trunk_cpp_ModelicaTest_Math_TestPolynomials_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Math_TestPolynomials.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Math_TestPolynomials.fmu] Error 1