Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002498/0.002498, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.13/2.13, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 90.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2881/0.2881, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.558e-05/3.572e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1278, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6434/0.7714, allocations: 196 MB / 0.6643 GB, free: 8.496 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/0.7717, allocations: 70.12 kB / 0.6644 GB, free: 8.465 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03256/0.8043, allocations: 6.998 MB / 0.6712 GB, free: 2.555 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.8043, allocations: 0 / 0.6712 GB, free: 2.555 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.8043, allocations: 0 / 0.6712 GB, free: 2.555 MB / 474.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.0005797/0.8049, allocations: 408 kB / 0.6716 GB, free: 2.109 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.805, allocations: 8.031 kB / 0.6716 GB, free: 2.102 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.722e-05/0.8051, allocations: 30.56 kB / 0.6717 GB, free: 2.062 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.211e-05/0.8051, allocations: 7.953 kB / 0.6717 GB, free: 2.055 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.8052, allocations: 167 kB / 0.6718 GB, free: 1.852 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.8052, allocations: 0 / 0.6718 GB, free: 1.852 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.847e-06/0.8053, allocations: 0 / 0.6718 GB, free: 1.852 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.348e-05/0.8054, allocations: 29.7 kB / 0.6718 GB, free: 1.816 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.8054, allocations: 4 kB / 0.6719 GB, free: 1.812 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.8054, allocations: 0 / 0.6719 GB, free: 1.812 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.8054, allocations: 0 / 0.6719 GB, free: 1.812 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.951e-05/0.8054, allocations: 0 / 0.6719 GB, free: 1.812 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001517/0.8056, allocations: 156.8 kB / 0.672 GB, free: 1.613 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.08e-05/0.8057, allocations: 22.45 kB / 0.672 GB, free: 1.582 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.713e-05/0.8057, allocations: 4.859 kB / 0.672 GB, free: 1.574 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.385e-05/0.8057, allocations: 8.078 kB / 0.672 GB, free: 1.566 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.726e-05/0.8058, allocations: 60.27 kB / 0.6721 GB, free: 1.492 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 1.693e-06/0.8058, allocations: 0 / 0.6721 GB, free: 1.492 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001946/0.806, allocations: 62.91 kB / 0.6722 GB, free: 1.422 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.392e-05/0.8061, allocations: 81.09 kB / 0.6722 GB, free: 1.324 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.885e-05/0.8062, allocations: 85 kB / 0.6723 GB, free: 1.234 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.8062, allocations: 25.7 kB / 0.6723 GB, free: 1.203 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.598e-05/0.8063, allocations: 150.6 kB / 0.6725 GB, free: 1.055 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.145e-05/0.8063, allocations: 0 / 0.6725 GB, free: 1.055 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-06/0.8063, allocations: 7.969 kB / 0.6725 GB, free: 1.047 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.8065, allocations: 318.8 kB / 0.6728 GB, free: 0.7266 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.266e-05/0.8065, allocations: 3.938 kB / 0.6728 GB, free: 0.7266 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.388e-06/0.8065, allocations: 0 / 0.6728 GB, free: 0.7266 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.858e-05/0.8066, allocations: 29.64 kB / 0.6728 GB, free: 0.6914 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.8066, allocations: 4 kB / 0.6728 GB, free: 0.6875 MB / 474.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.618e-05/0.8067, allocations: 59.39 kB / 0.6729 GB, free: 0.6172 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.416e-05/0.8067, allocations: 33.7 kB / 0.6729 GB, free: 0.5781 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.8067, allocations: 8.078 kB / 0.6729 GB, free: 0.5703 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.8068, allocations: 0 / 0.6729 GB, free: 0.5703 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-06/0.8068, allocations: 0 / 0.6729 GB, free: 0.5703 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.8068, allocations: 0 / 0.6729 GB, free: 0.5703 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.881e-05/0.8068, allocations: 0 / 0.6729 GB, free: 0.5703 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.8068, allocations: 0 / 0.6729 GB, free: 0.5703 MB / 474.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 0.000101/0.807, allocations: 138.6 kB / 0.6731 GB, free: 432 kB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.07e-05/0.807, allocations: 0.625 kB / 0.6731 GB, free: 432 kB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.598e-05/0.807, allocations: 7.109 kB / 0.6731 GB, free: 420 kB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.807, allocations: 7.938 kB / 0.6731 GB, free: 412 kB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.807, allocations: 8 kB / 0.6731 GB, free: 404 kB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.807, allocations: 0 / 0.6731 GB, free: 404 kB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.8072, allocations: 148.8 kB / 0.6732 GB, free: 208 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.8072, allocations: 0 / 0.6732 GB, free: 208 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.8072, allocations: 0 / 0.6732 GB, free: 208 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.8072, allocations: 0 / 0.6732 GB, free: 208 kB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.8072, allocations: 4 kB / 0.6732 GB, free: 204 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.8072, allocations: 0 / 0.6732 GB, free: 204 kB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.8072, allocations: 3.984 kB / 0.6732 GB, free: 200 kB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001239/0.8074, allocations: 94.77 kB / 0.6733 GB, free: 84 kB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.584e-05/0.8075, allocations: 81.06 kB / 0.6734 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.8075, allocations: 3.984 kB / 0.6734 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.161e-05/0.8075, allocations: 0 / 0.6734 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.334e-05/0.8075, allocations: 3.938 kB / 0.6734 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.261e-06/0.8076, allocations: 4 kB / 0.6734 GB, free: 15.97 MB / 490.7 MB Notification: Performance of sorting global known variables: time 3.829e-05/0.8076, allocations: 78.44 kB / 0.6735 GB, free: 15.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.8076, allocations: 0 / 0.6735 GB, free: 15.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0005573/0.8082, allocations: 91.52 kB / 0.6736 GB, free: 15.81 MB / 490.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.0009795/0.8092, allocations: 0.73 MB / 0.6743 GB, free: 15.06 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001179/0.8093, allocations: 63.33 kB / 0.6743 GB, free: 14.99 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.8093, allocations: 0 / 0.6743 GB, free: 14.99 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 4.291e-05/0.8094, allocations: 55.41 kB / 0.6744 GB, free: 14.92 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.751e-05/0.8095, allocations: 0 / 0.6744 GB, free: 14.92 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000387/0.8099, allocations: 146.4 kB / 0.6745 GB, free: 14.74 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.8102, allocations: 0.677 MB / 0.6752 GB, free: 14.04 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.654e-05/0.8103, allocations: 7.438 kB / 0.6752 GB, free: 14.03 MB / 490.7 MB Notification: Performance of SimCode: time 7.81e-07/0.8103, allocations: 4.125 kB / 0.6752 GB, free: 14.03 MB / 490.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestPolynomialsCalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestPolynomialsCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestPolynomialsCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestPolynomialsFMU.cpp:11: /var/lib/jenkins1/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_3_cpp_ModelicaTest_Math_TestPolynomials.so OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestPolynomialsCalcHelperMain.o -L"/var/lib/jenkins1/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"/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om" "-L/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc" -Wl,-rpath="/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc" "-L/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/" -Wl,-rpath="/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/" "-L/home/hudson/saved_omc/libraries/.openmodelica/binaries/Modelica" -Wl,-rpath="/home/hudson/saved_omc/libraries/.openmodelica/binaries/Modelica" "-L/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Library/x86_64-linux" -Wl,-rpath="/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Library/x86_64-linux" "-L/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Library/linux64" -Wl,-rpath="/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Library/linux64" "-L/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Library" -Wl,-rpath="/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Library" -lModelicaExternalC -lOMCppModelicaUtilities_static -lOMCppDgesv_static /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp/libModelicaExternalC.a(ModelicaInternal.c.o): In function `ModelicaInternal_temporaryFileName': /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaInternal.c:622: warning: the use of `tmpnam' is dangerous, better use `mkstemp' OMCppModelicaTest_3_2_3_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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestPolynomials/./OMCppModelicaTest_3_2_3_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_3_cpp_ModelicaTest_Math_TestPolynomials_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestPolynomials.fmu' failed make: *** [ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestPolynomials.fmu] Error 1