Running command: "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.327/2.327, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.736e-05/3.74e-05, allocations: 4 kB / 305 MB, free: 5.578 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4006/0.4007, allocations: 54.86 MB / 359.9 MB, free: 2.688 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6287/1.029, allocations: 192.5 MB / 0.5394 GB, free: 112.9 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001808/1.03, allocations: 65.59 kB / 0.5395 GB, free: 112.9 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02905/1.059, allocations: 6.936 MB / 0.5463 GB, free: 111.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.582e-06/1.059, allocations: 0 / 0.5463 GB, free: 111.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/1.059, allocations: 4 kB / 0.5463 GB, free: 111.9 MB / 458.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.0004455/1.059, allocations: 402.1 kB / 0.5466 GB, free: 111.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/1.059, allocations: 16.5 kB / 0.5467 GB, free: 111.5 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.872e-05/1.059, allocations: 34.5 kB / 0.5467 GB, free: 111.4 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.335e-05/1.059, allocations: 0 / 0.5467 GB, free: 111.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.366e-05/1.06, allocations: 159.1 kB / 0.5468 GB, free: 111.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/1.06, allocations: 0.5625 kB / 0.5468 GB, free: 111.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.307e-05/1.06, allocations: 3.906 kB / 0.5469 GB, free: 111.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.499e-05/1.06, allocations: 33.64 kB / 0.5469 GB, free: 111.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/1.06, allocations: 0 / 0.5469 GB, free: 111.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-06/1.06, allocations: 3.953 kB / 0.5469 GB, free: 111.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/1.06, allocations: 0 / 0.5469 GB, free: 111.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.945e-05/1.06, allocations: 7.422 kB / 0.5469 GB, free: 111.2 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001036/1.06, allocations: 147.2 kB / 0.547 GB, free: 111 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.357e-05/1.06, allocations: 26.45 kB / 0.5471 GB, free: 111 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.462e-05/1.06, allocations: 4.859 kB / 0.5471 GB, free: 110.9 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.49e-06/1.06, allocations: 4 kB / 0.5471 GB, free: 110.9 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/1.06, allocations: 60.2 kB / 0.5471 GB, free: 110.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=1): time 1.814e-06/1.06, allocations: 0 / 0.5471 GB, free: 110.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001474/1.06, allocations: 70.52 kB / 0.5472 GB, free: 110.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/1.06, allocations: 77.11 kB / 0.5473 GB, free: 110.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.985e-05/1.06, allocations: 85 kB / 0.5473 GB, free: 110.6 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/1.06, allocations: 29.61 kB / 0.5474 GB, free: 110.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.521e-05/1.06, allocations: 150.6 kB / 0.5475 GB, free: 110.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.632e-05/1.06, allocations: 4.031 kB / 0.5475 GB, free: 110.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-06/1.06, allocations: 0 / 0.5475 GB, free: 110.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 5.482e-05/1.06, allocations: 310.8 kB / 0.5478 GB, free: 110.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.849e-06/1.06, allocations: 0 / 0.5478 GB, free: 110.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.208e-06/1.06, allocations: 11.28 kB / 0.5478 GB, free: 110.1 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.447e-05/1.06, allocations: 25.7 kB / 0.5479 GB, free: 110.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/1.06, allocations: 0 / 0.5479 GB, free: 110.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.909e-05/1.061, allocations: 62.69 kB / 0.5479 GB, free: 110 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.585e-05/1.061, allocations: 38.91 kB / 0.548 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/1.061, allocations: 0 / 0.548 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/1.061, allocations: 0 / 0.548 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.425e-06/1.061, allocations: 3.938 kB / 0.548 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/1.061, allocations: 0 / 0.548 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.791e-05/1.061, allocations: 3.953 kB / 0.548 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/1.061, allocations: 0 / 0.548 GB, free: 110 MB / 458.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 5.801e-05/1.061, allocations: 130.6 kB / 0.5481 GB, free: 109.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.127e-06/1.061, allocations: 0 / 0.5481 GB, free: 109.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.328e-05/1.061, allocations: 7.125 kB / 0.5481 GB, free: 109.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/1.061, allocations: 0 / 0.5481 GB, free: 109.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/1.061, allocations: 0 / 0.5481 GB, free: 109.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/1.061, allocations: 7.359 kB / 0.5481 GB, free: 109.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.663e-05/1.061, allocations: 149.6 kB / 0.5482 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/1.061, allocations: 0 / 0.5482 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.864e-06/1.061, allocations: 0.875 kB / 0.5482 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/1.061, allocations: 0 / 0.5482 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/1.061, allocations: 0 / 0.5482 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/1.061, allocations: 0 / 0.5482 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.061, allocations: 11.34 kB / 0.5483 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.015e-05/1.061, allocations: 94.23 kB / 0.5483 GB, free: 109.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.242e-05/1.061, allocations: 80.53 kB / 0.5484 GB, free: 109.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.643e-05/1.061, allocations: 11.72 kB / 0.5484 GB, free: 109.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.18e-05/1.061, allocations: 0 / 0.5484 GB, free: 109.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.43e-05/1.061, allocations: 0 / 0.5484 GB, free: 109.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/1.061, allocations: 0 / 0.5484 GB, free: 109.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 1.708e-05/1.061, allocations: 75.28 kB / 0.5485 GB, free: 109.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.7e-07/1.061, allocations: 7.969 kB / 0.5485 GB, free: 109.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0005184/1.062, allocations: 77.95 kB / 0.5486 GB, free: 109.3 MB / 458.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.0007709/1.063, allocations: 0.7406 MB / 0.5493 GB, free: 108.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 8.932e-05/1.063, allocations: 58.64 kB / 0.5494 GB, free: 108.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/1.063, allocations: 0 / 0.5494 GB, free: 108.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 2.785e-05/1.063, allocations: 58.88 kB / 0.5494 GB, free: 108.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001005/1.063, allocations: 0 / 0.5494 GB, free: 108.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003386/1.063, allocations: 147.5 kB / 0.5496 GB, free: 108.4 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001244/1.063, allocations: 0.6768 MB / 0.5502 GB, free: 107.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.289e-05/1.063, allocations: 11.56 kB / 0.5502 GB, free: 107.7 MB / 458.7 MB Notification: Performance of SimCode: time 7.21e-07/1.063, allocations: 0 / 0.5502 GB, free: 107.7 MB / 458.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_TestPolynomialsCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestPolynomialsCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestPolynomialsCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_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_3_2_2_cpp_ModelicaTest_Math_TestPolynomials.so OMCppModelicaTest_3_2_2_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 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_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_3.2.2_cpp_ModelicaTest.Math.TestPolynomials/./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestPolynomialsFunctions.cpp:147: 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_TestPolynomials_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestPolynomials.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestPolynomials.fmu] Error 1