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.002677/0.002676, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.067/2.067, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001212/0.001212, allocations: 105.6 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.531/0.531, allocations: 43.55 MB / 362.7 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004843/0.0004844, allocations: 16 kB / 431.5 MB, free: 6.078 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1391, allocations: 58.85 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6451/0.7842, allocations: 196.1 MB / 0.6704 GB, free: 2.223 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.7845, allocations: 63.97 kB / 0.6704 GB, free: 2.16 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3562/1.141, allocations: 7.053 MB / 0.6773 GB, free: 150 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.985e-06/1.141, allocations: 0 / 0.6773 GB, free: 150 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.542e-05/1.141, allocations: 0.5625 kB / 0.6773 GB, free: 150 MB / 490.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.0005207/1.141, allocations: 413.3 kB / 0.6777 GB, free: 149.6 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/1.141, allocations: 9.438 kB / 0.6777 GB, free: 149.6 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.753e-05/1.141, allocations: 35.53 kB / 0.6777 GB, free: 149.5 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.775e-05/1.142, allocations: 3.438 kB / 0.6777 GB, free: 149.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.418e-05/1.142, allocations: 159.1 kB / 0.6779 GB, free: 149.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/1.142, allocations: 1.094 kB / 0.6779 GB, free: 149.3 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/1.142, allocations: 1.188 kB / 0.6779 GB, free: 149.3 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.504e-05/1.142, allocations: 31.36 kB / 0.6779 GB, free: 149.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/1.142, allocations: 7.938 kB / 0.6779 GB, free: 149.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/1.142, allocations: 2 kB / 0.6779 GB, free: 149.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/1.142, allocations: 0.5625 kB / 0.6779 GB, free: 149.3 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.113e-05/1.142, allocations: 3.5 kB / 0.6779 GB, free: 149.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001091/1.142, allocations: 147.9 kB / 0.6781 GB, free: 149.1 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.968e-05/1.142, allocations: 23.05 kB / 0.6781 GB, free: 149.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.042e-06/1.142, allocations: 3.234 kB / 0.6781 GB, free: 149.1 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/1.142, allocations: 62.27 kB / 0.6782 GB, free: 149 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 1.693e-06/1.142, allocations: 0 / 0.6782 GB, free: 149 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.00018/1.142, allocations: 61.72 kB / 0.6782 GB, free: 148.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.531e-05/1.142, allocations: 84.88 kB / 0.6783 GB, free: 148.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.309e-05/1.142, allocations: 90.97 kB / 0.6784 GB, free: 148.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.025e-05/1.142, allocations: 26.86 kB / 0.6784 GB, free: 148.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.462e-05/1.142, allocations: 150.6 kB / 0.6786 GB, free: 148.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.822e-05/1.142, allocations: 1 kB / 0.6786 GB, free: 148.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-06/1.142, allocations: 128 / 0.6786 GB, free: 148.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.125e-05/1.143, allocations: 320 kB / 0.6789 GB, free: 148.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.091e-05/1.143, allocations: 0 / 0.6789 GB, free: 148.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.187e-06/1.143, allocations: 1.812 kB / 0.6789 GB, free: 148.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.035e-05/1.143, allocations: 27.23 kB / 0.6789 GB, free: 148.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/1.143, allocations: 0 / 0.6789 GB, free: 148.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.011e-05/1.143, allocations: 65.55 kB / 0.679 GB, free: 148.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.809e-05/1.143, allocations: 30.98 kB / 0.679 GB, free: 148.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/1.143, allocations: 1.312 kB / 0.679 GB, free: 148.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/1.143, allocations: 4.094 kB / 0.679 GB, free: 148.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.044e-06/1.143, allocations: 1.25 kB / 0.679 GB, free: 148.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/1.143, allocations: 0 / 0.679 GB, free: 148.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.155e-05/1.143, allocations: 1.156 kB / 0.679 GB, free: 148.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.387e-06/1.143, allocations: 0 / 0.679 GB, free: 148.1 MB / 490.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 () * Number of clocked 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 7.333e-05/1.143, allocations: 149.7 kB / 0.6791 GB, free: 148 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.121e-05/1.143, allocations: 4.969 kB / 0.6791 GB, free: 148 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.352e-05/1.143, allocations: 3.125 kB / 0.6791 GB, free: 148 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/1.143, allocations: 0 / 0.6791 GB, free: 148 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/1.143, allocations: 5.094 kB / 0.6791 GB, free: 148 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/1.143, allocations: 0 / 0.6791 GB, free: 148 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.695e-05/1.143, allocations: 158.1 kB / 0.6793 GB, free: 147.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/1.143, allocations: 3.938 kB / 0.6793 GB, free: 147.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.302e-06/1.143, allocations: 0 / 0.6793 GB, free: 147.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/1.143, allocations: 1.312 kB / 0.6793 GB, free: 147.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/1.143, allocations: 0 / 0.6793 GB, free: 147.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/1.143, allocations: 1.156 kB / 0.6793 GB, free: 147.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/1.143, allocations: 0 / 0.6793 GB, free: 147.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001258/1.143, allocations: 91.75 kB / 0.6794 GB, free: 147.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.856e-05/1.143, allocations: 82.06 kB / 0.6795 GB, free: 147.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/1.143, allocations: 5 kB / 0.6795 GB, free: 147.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.794e-05/1.143, allocations: 0 / 0.6795 GB, free: 147.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.231e-05/1.143, allocations: 1.125 kB / 0.6795 GB, free: 147.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/1.143, allocations: 0 / 0.6795 GB, free: 147.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 2.254e-05/1.144, allocations: 83.91 kB / 0.6796 GB, free: 147.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.144, allocations: 0 / 0.6796 GB, free: 147.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0007954/1.144, allocations: 80.7 kB / 0.6796 GB, free: 147.5 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) * Number of clocked states: 0 () * 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.001015/1.145, allocations: 0.7347 MB / 0.6804 GB, free: 146.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001272/1.146, allocations: 62.38 kB / 0.6804 GB, free: 146.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/1.146, allocations: 1.438 kB / 0.6804 GB, free: 146.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 3.072e-05/1.146, allocations: 58.25 kB / 0.6805 GB, free: 146.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001067/1.146, allocations: 4.281 kB / 0.6805 GB, free: 146.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005341/1.146, allocations: 184.1 kB / 0.6806 GB, free: 146.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001252/1.146, allocations: 0.6707 MB / 0.6813 GB, free: 145.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.557e-05/1.146, allocations: 8.938 kB / 0.6813 GB, free: 145.8 MB / 490.7 MB Notification: Performance of SimCode: time 1.052e-06/1.146, allocations: 4.125 kB / 0.6813 GB, free: 145.8 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 -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 -lOMCppSystem_static -lOMCppMath_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -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:652: 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