Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestPolynomials.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) 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.418/2.418, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006181/0.0006178, allocations: 12 kB / 314.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4157/0.4164, allocations: 54.87 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6816/1.098, allocations: 192.6 MB / 0.5488 GB, free: 4.965 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/1.098, allocations: 72.23 kB / 0.5489 GB, free: 4.93 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03156/1.13, allocations: 7.015 MB / 0.5557 GB, free: 14.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.325e-06/1.13, allocations: 4 kB / 0.5557 GB, free: 14.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.611e-06/1.13, allocations: 4 kB / 0.5557 GB, free: 14.95 MB / 410.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.0006009/1.131, allocations: 416.4 kB / 0.5561 GB, free: 14.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/1.131, allocations: 8.031 kB / 0.5561 GB, free: 14.49 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.19e-05/1.131, allocations: 30.56 kB / 0.5561 GB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.006e-05/1.131, allocations: 7.422 kB / 0.5562 GB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/1.131, allocations: 159.1 kB / 0.5563 GB, free: 14.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/1.131, allocations: 7.875 kB / 0.5563 GB, free: 14.24 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.45e-05/1.131, allocations: 4 kB / 0.5563 GB, free: 14.24 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.827e-05/1.131, allocations: 29.7 kB / 0.5563 GB, free: 14.2 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/1.131, allocations: 0 / 0.5563 GB, free: 14.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/1.131, allocations: 3.953 kB / 0.5563 GB, free: 14.2 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/1.131, allocations: 0 / 0.5563 GB, free: 14.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.953e-05/1.131, allocations: 4 kB / 0.5563 GB, free: 14.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001622/1.131, allocations: 145.7 kB / 0.5565 GB, free: 14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.04e-05/1.131, allocations: 26.23 kB / 0.5565 GB, free: 13.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.997e-06/1.131, allocations: 0 / 0.5565 GB, free: 13.97 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.62e-05/1.131, allocations: 60.27 kB / 0.5566 GB, free: 13.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.462e-06/1.131, allocations: 0 / 0.5566 GB, free: 13.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001951/1.132, allocations: 63.45 kB / 0.5566 GB, free: 13.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.606e-05/1.132, allocations: 85.97 kB / 0.5567 GB, free: 13.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.035e-05/1.132, allocations: 85 kB / 0.5568 GB, free: 13.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/1.132, allocations: 25.7 kB / 0.5568 GB, free: 13.61 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.214e-05/1.132, allocations: 150.6 kB / 0.557 GB, free: 13.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.167e-05/1.132, allocations: 4.125 kB / 0.557 GB, free: 13.45 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-06/1.132, allocations: 4 kB / 0.557 GB, free: 13.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/1.132, allocations: 310.8 kB / 0.5573 GB, free: 13.14 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.447e-05/1.132, allocations: 3.938 kB / 0.5573 GB, free: 13.13 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.514e-06/1.132, allocations: 0 / 0.5573 GB, free: 13.13 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.306e-05/1.132, allocations: 29.7 kB / 0.5573 GB, free: 13.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/1.132, allocations: 0 / 0.5573 GB, free: 13.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.792e-05/1.132, allocations: 67.08 kB / 0.5574 GB, free: 13.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.673e-05/1.132, allocations: 29.7 kB / 0.5574 GB, free: 12.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/1.132, allocations: 4.094 kB / 0.5574 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.291e-05/1.132, allocations: 3.984 kB / 0.5574 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.693e-06/1.132, allocations: 3.938 kB / 0.5574 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/1.132, allocations: 0 / 0.5574 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.294e-05/1.133, allocations: 4 kB / 0.5574 GB, free: 12.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/1.133, allocations: 3.953 kB / 0.5574 GB, free: 12.97 MB / 410.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 0.0001106/1.133, allocations: 135.5 kB / 0.5575 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.224e-05/1.133, allocations: 4 kB / 0.5575 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.454e-05/1.133, allocations: 3.125 kB / 0.5575 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/1.133, allocations: 4 kB / 0.5575 GB, free: 12.81 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/1.133, allocations: 0 / 0.5575 GB, free: 12.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/1.133, allocations: 0 / 0.5575 GB, free: 12.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000174/1.133, allocations: 153.1 kB / 0.5577 GB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/1.133, allocations: 7.922 kB / 0.5577 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.679e-06/1.133, allocations: 8 kB / 0.5577 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/1.133, allocations: 0 / 0.5577 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/1.133, allocations: 3.938 kB / 0.5577 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/1.133, allocations: 0 / 0.5577 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/1.133, allocations: 0 / 0.5577 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001381/1.133, allocations: 98.59 kB / 0.5578 GB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.682e-05/1.133, allocations: 77.11 kB / 0.5579 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/1.133, allocations: 0 / 0.5579 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.299e-05/1.133, allocations: 0 / 0.5579 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.225e-05/1.133, allocations: 4 kB / 0.5579 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/1.133, allocations: 0 / 0.5579 GB, free: 12.38 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.599e-05/1.133, allocations: 75.28 kB / 0.558 GB, free: 12.31 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.133, allocations: 32 / 0.558 GB, free: 12.31 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005701/1.134, allocations: 87.23 kB / 0.558 GB, free: 12.23 MB / 410.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.001048/1.135, allocations: 0.7464 MB / 0.5588 GB, free: 11.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001153/1.135, allocations: 55.41 kB / 0.5588 GB, free: 11.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/1.135, allocations: 0 / 0.5588 GB, free: 11.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.853e-05/1.135, allocations: 55.41 kB / 0.5589 GB, free: 11.33 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001063/1.135, allocations: 0 / 0.5589 GB, free: 11.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004706/1.136, allocations: 177.6 kB / 0.559 GB, free: 11.11 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003021/1.136, allocations: 0.6731 MB / 0.5597 GB, free: 10.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.678e-05/1.136, allocations: 15.5 kB / 0.5597 GB, free: 10.4 MB / 410.7 MB Notification: Performance of SimCode: time 8.72e-07/1.136, allocations: 0 / 0.5597 GB, free: 10.4 MB / 410.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 -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 -lOMCppSystem_static -lOMCppMath_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -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:652: 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