Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.276/2.276, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.931e-05/1.956e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3401, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1431/0.4833, allocations: 80.69 MB / 438.8 MB, free: 14.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.4836, allocations: 59.97 kB / 438.9 MB, free: 14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01287/0.4965, allocations: 2.744 MB / 441.6 MB, free: 11.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4965, allocations: 0 / 441.6 MB, free: 11.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.4966, allocations: 3.938 kB / 441.6 MB, free: 11.25 MB / 378.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.0004189/0.497, allocations: 384.1 kB / 442 MB, free: 10.83 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.497, allocations: 12.03 kB / 442 MB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.881e-05/0.4971, allocations: 4 kB / 442 MB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.4972, allocations: 159.1 kB / 442.2 MB, free: 10.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.4972, allocations: 0 / 442.2 MB, free: 10.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.815e-06/0.4972, allocations: 0 / 442.2 MB, free: 10.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.347e-05/0.4973, allocations: 4 kB / 442.2 MB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.983e-05/0.4974, allocations: 33.64 kB / 442.2 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.4974, allocations: 3.938 kB / 442.2 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.798e-06/0.4974, allocations: 0 / 442.2 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.4974, allocations: 0 / 442.2 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000126/0.4976, allocations: 126.2 kB / 442.3 MB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.085e-05/0.4976, allocations: 26.52 kB / 442.3 MB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.57e-05/0.4976, allocations: 4.859 kB / 442.4 MB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.115e-06/0.4977, allocations: 0 / 442.4 MB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.575e-05/0.4977, allocations: 60.36 kB / 442.4 MB, free: 10.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.573e-06/0.4977, allocations: 0 / 442.4 MB, free: 10.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000174/0.4979, allocations: 37.64 kB / 442.4 MB, free: 10.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.815e-05/0.498, allocations: 81.14 kB / 442.5 MB, free: 10.15 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.623e-05/0.498, allocations: 85 kB / 442.6 MB, free: 10.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.498, allocations: 29.7 kB / 442.6 MB, free: 10.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.797e-05/0.4981, allocations: 150.6 kB / 442.8 MB, free: 9.879 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.042e-05/0.4981, allocations: 0 / 442.8 MB, free: 9.879 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.504e-06/0.4981, allocations: 0 / 442.8 MB, free: 9.879 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.4983, allocations: 314.8 kB / 443.1 MB, free: 9.562 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.137e-06/0.4983, allocations: 0 / 443.1 MB, free: 9.562 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.236e-06/0.4983, allocations: 0 / 443.1 MB, free: 9.562 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.113e-05/0.4984, allocations: 12 kB / 443.1 MB, free: 9.551 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/0.4984, allocations: 0 / 443.1 MB, free: 9.551 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.387e-05/0.4985, allocations: 33.69 kB / 443.1 MB, free: 9.512 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.199e-05/0.4985, allocations: 33.7 kB / 443.2 MB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.4985, allocations: 0 / 443.2 MB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.4986, allocations: 0 / 443.2 MB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-06/0.4986, allocations: 0 / 443.2 MB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.4986, allocations: 4 kB / 443.2 MB, free: 9.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.99e-05/0.4986, allocations: 3.953 kB / 443.2 MB, free: 9.465 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/0.4986, allocations: 4 kB / 443.2 MB, free: 9.461 MB / 378.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 8.565e-05/0.4987, allocations: 130.7 kB / 443.3 MB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.552e-05/0.4988, allocations: 45.62 kB / 443.4 MB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.03e-05/0.4989, allocations: 4 kB / 443.4 MB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.438e-05/0.4989, allocations: 3.75 kB / 443.4 MB, free: 9.262 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.4989, allocations: 3.938 kB / 443.4 MB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.4989, allocations: 3.953 kB / 443.4 MB, free: 9.254 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.4989, allocations: 0 / 443.4 MB, free: 9.254 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.625e-05/0.499, allocations: 130.2 kB / 443.5 MB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.499, allocations: 32 / 443.5 MB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.387e-06/0.4991, allocations: 8 kB / 443.5 MB, free: 9.082 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.4991, allocations: 3.984 kB / 443.5 MB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.4991, allocations: 0 / 443.5 MB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.4991, allocations: 0 / 443.5 MB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4991, allocations: 0 / 443.5 MB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001104/0.4992, allocations: 65.08 kB / 443.6 MB, free: 8.996 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.398e-05/0.4993, allocations: 81.11 kB / 443.7 MB, free: 8.898 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.4993, allocations: 4.031 kB / 443.7 MB, free: 8.895 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.225e-05/0.4993, allocations: 0 / 443.7 MB, free: 8.895 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.698e-05/0.4993, allocations: 0 / 443.7 MB, free: 8.895 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.4994, allocations: 0 / 443.7 MB, free: 8.895 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.092e-05/0.4994, allocations: 79.28 kB / 443.7 MB, free: 8.816 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4994, allocations: 0 / 443.7 MB, free: 8.816 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004877/0.4999, allocations: 79.92 kB / 443.8 MB, free: 8.738 MB / 378.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.0009049/0.5008, allocations: 0.7265 MB / 444.5 MB, free: 7.992 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.462e-05/0.5009, allocations: 55.41 kB / 444.6 MB, free: 7.926 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.5009, allocations: 0 / 444.6 MB, free: 7.926 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.709e-05/0.501, allocations: 55.41 kB / 444.6 MB, free: 7.859 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001012/0.5011, allocations: 3.938 kB / 444.6 MB, free: 7.855 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000356/0.5015, allocations: 143.3 kB / 444.8 MB, free: 7.672 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.5017, allocations: 0.6691 MB / 445.5 MB, free: 6.977 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.675e-05/0.5018, allocations: 15.44 kB / 445.5 MB, free: 6.961 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.5018, allocations: 0 / 445.5 MB, free: 6.961 MB / 378.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=7 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"." -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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_TestMatrices.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.o -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/" "-L/var/lib/hudson/.openmodelica/binaries/Modelica" -Wl,-rpath="/var/lib/hudson/.openmodelica/binaries/Modelica" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library" -lModelicaExternalC -lOMCppModelicaUtilities_static -lOMCppDgesv_static /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc/cpp/libModelicaExternalC.a(ModelicaInternal.c.o): In function `ModelicaInternal_temporaryFileName': /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaInternal.c:614: warning: the use of `tmpnam' is dangerous, better use `mkstemp' OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.o: In function `Functions::Modelica_Math_Matrices_LAPACK_dgglse__vec(BaseArray&, BaseArray&, BaseArray&, BaseArray&, Modelica_Math_Matrices_LAPACK_dgglse__vecType&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices/./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesFunctions.cpp:241: undefined reference to `dgglse_' OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.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.TestMatrices/./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatricesFunctions.cpp:202: 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_TestMatrices_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Math_TestMatrices.fmu] Error 1