Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2b.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.TestMatrices2b,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2b",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.00146/0.00146, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.088/2.088, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001091/0.001091, allocations: 92.86 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3089/0.3089, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.745e-05/1.773e-05, allocations: 4 kB / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4167/0.4167, allocations: 58.85 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1673/0.5841, allocations: 87.93 MB / 0.5519 GB, free: 11.27 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.5844, allocations: 63.97 kB / 0.5519 GB, free: 11.2 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1182/0.7026, allocations: 25.28 MB / 0.5766 GB, free: 1.887 MB / 411.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.7027, allocations: 0 / 0.5766 GB, free: 1.887 MB / 411.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.7027, allocations: 0 / 0.5766 GB, free: 1.887 MB / 411.1 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.0007887/0.7035, allocations: 440 kB / 0.577 GB, free: 1.406 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.7036, allocations: 12.03 kB / 0.577 GB, free: 1.395 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.639e-05/0.7036, allocations: 7.953 kB / 0.577 GB, free: 1.387 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.7037, allocations: 159.1 kB / 0.5772 GB, free: 1.191 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.7038, allocations: 3.984 kB / 0.5772 GB, free: 1.188 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.241e-05/0.7038, allocations: 0 / 0.5772 GB, free: 1.188 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.561e-05/0.7039, allocations: 0 / 0.5772 GB, free: 1.188 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.994e-05/0.7039, allocations: 33.64 kB / 0.5772 GB, free: 1.148 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.704, allocations: 0 / 0.5772 GB, free: 1.148 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.868e-06/0.704, allocations: 0 / 0.5772 GB, free: 1.148 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.704, allocations: 0 / 0.5772 GB, free: 1.148 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001304/0.7042, allocations: 134.2 kB / 0.5774 GB, free: 0.9805 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.907e-05/0.7042, allocations: 18.61 kB / 0.5774 GB, free: 0.9531 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.536e-05/0.7042, allocations: 4.859 kB / 0.5774 GB, free: 0.9453 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.767e-06/0.7043, allocations: 0 / 0.5774 GB, free: 0.9453 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.345e-05/0.7043, allocations: 60.25 kB / 0.5774 GB, free: 0.8711 MB / 411.1 MB Notification: Performance of pre-optimization done (n=1): time 1.523e-06/0.7043, allocations: 0 / 0.5774 GB, free: 0.8711 MB / 411.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002012/0.7045, allocations: 37.73 kB / 0.5775 GB, free: 0.8281 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.871e-05/0.7046, allocations: 81.11 kB / 0.5776 GB, free: 0.7305 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.98e-05/0.7047, allocations: 85 kB / 0.5776 GB, free: 0.6406 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.7047, allocations: 29.7 kB / 0.5777 GB, free: 0.6055 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.413e-05/0.7048, allocations: 150.6 kB / 0.5778 GB, free: 468 kB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.186e-05/0.7048, allocations: 0 / 0.5778 GB, free: 468 kB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-06/0.7048, allocations: 0 / 0.5778 GB, free: 468 kB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.7049, allocations: 314.8 kB / 0.5781 GB, free: 144 kB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.408e-05/0.705, allocations: 3.984 kB / 0.5781 GB, free: 140 kB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.863e-06/0.705, allocations: 7.938 kB / 0.5781 GB, free: 132 kB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.191e-05/0.705, allocations: 0 / 0.5781 GB, free: 132 kB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.705, allocations: 3.953 kB / 0.5781 GB, free: 128 kB / 411.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.133e-05/0.7051, allocations: 37.64 kB / 0.5782 GB, free: 84 kB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.944e-05/0.7052, allocations: 29.7 kB / 0.5782 GB, free: 48 kB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.7052, allocations: 0 / 0.5782 GB, free: 48 kB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.7052, allocations: 4 kB / 0.5782 GB, free: 44 kB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.396e-06/0.7053, allocations: 3.984 kB / 0.5782 GB, free: 40 kB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.7053, allocations: 3.984 kB / 0.5782 GB, free: 36 kB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.691e-05/0.7053, allocations: 4.094 kB / 0.5782 GB, free: 32 kB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.7053, allocations: 0 / 0.5782 GB, free: 32 kB / 411.1 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.0001241/0.7055, allocations: 138.6 kB / 0.5783 GB, free: 15.88 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.958e-05/0.7056, allocations: 37.66 kB / 0.5784 GB, free: 15.84 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.066e-05/0.7056, allocations: 3.984 kB / 0.5784 GB, free: 15.84 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.452e-05/0.7056, allocations: 3.75 kB / 0.5784 GB, free: 15.83 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/0.7056, allocations: 0 / 0.5784 GB, free: 15.83 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.7056, allocations: 0 / 0.5784 GB, free: 15.83 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.7057, allocations: 4 kB / 0.5784 GB, free: 15.83 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.515e-05/0.7058, allocations: 130.2 kB / 0.5785 GB, free: 15.66 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.7058, allocations: 0 / 0.5785 GB, free: 15.66 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.7058, allocations: 0 / 0.5785 GB, free: 15.66 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.7058, allocations: 0 / 0.5785 GB, free: 15.66 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.7058, allocations: 4 kB / 0.5785 GB, free: 15.66 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.7058, allocations: 3.984 kB / 0.5785 GB, free: 15.66 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.7058, allocations: 4 kB / 0.5785 GB, free: 15.65 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001227/0.706, allocations: 65.69 kB / 0.5786 GB, free: 15.57 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.21e-05/0.706, allocations: 85.09 kB / 0.5787 GB, free: 15.47 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.7061, allocations: 3.984 kB / 0.5787 GB, free: 15.46 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.662e-05/0.7061, allocations: 4 kB / 0.5787 GB, free: 15.46 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.145e-05/0.7061, allocations: 0 / 0.5787 GB, free: 15.46 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.7061, allocations: 0 / 0.5787 GB, free: 15.46 MB / 427.1 MB Notification: Performance of sorting global known variables: time 3.195e-05/0.7062, allocations: 75.28 kB / 0.5787 GB, free: 15.39 MB / 427.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.7062, allocations: 0 / 0.5787 GB, free: 15.39 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001057/0.7072, allocations: 199.8 kB / 0.5789 GB, free: 15.19 MB / 427.1 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.002048/0.7093, allocations: 0.8736 MB / 0.5798 GB, free: 14.29 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0001172/0.7095, allocations: 55.41 kB / 0.5798 GB, free: 14.22 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.7095, allocations: 0 / 0.5798 GB, free: 14.22 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 4.084e-05/0.7095, allocations: 55.41 kB / 0.5799 GB, free: 14.15 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001142/0.7097, allocations: 3.375 kB / 0.5799 GB, free: 14.15 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006426/0.7103, allocations: 185.8 kB / 0.5801 GB, free: 13.93 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002573/0.7106, allocations: 0.6808 MB / 0.5807 GB, free: 13.22 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.782e-05/0.7106, allocations: 7.438 kB / 0.5807 GB, free: 13.21 MB / 427.1 MB Notification: Performance of SimCode: time 7.61e-07/0.7106, allocations: 4 kB / 0.5807 GB, free: 13.21 MB / 427.1 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/OMCompiler/build/include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bFMU.cpp:11: /var/lib/jenkins1/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_3_cpp_ModelicaTest_Math_TestMatrices2b.so OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.o -L"/var/lib/jenkins1/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"/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om" "-L/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc" -Wl,-rpath="/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc" "-L/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/" -Wl,-rpath="/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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/OMCompiler/build/lib/x86_64-linux-gnu/omc/cpp/libModelicaExternalC.a(ModelicaInternal.c.o): In function `ModelicaInternal_temporaryFileName': /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaInternal.c:614: warning: the use of `tmpnam' is dangerous, better use `mkstemp' OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.o: In function `Functions::Modelica_Math_Matrices_LAPACK_dgetri(BaseArray&, BaseArray&, Modelica_Math_Matrices_LAPACK_dgetriType&)': /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2b/./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:987: undefined reference to `dgetri_' OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bCalcHelperMain.o: In function `Functions::Modelica_Math_Matrices_LAPACK_dgesvd(BaseArray&, Modelica_Math_Matrices_LAPACK_dgesvdType&)': /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2b/./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2bFunctions.cpp:908: undefined reference to `dgesvd_' clang: error: linker command failed with exit code 1 (use -v to see invocation) ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2b_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2b.fmu' failed make: *** [ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices2b.fmu] Error 1