Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices.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.TestMatrices,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices",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.00149/0.00149, allocations: 180.1 kB / 8.362 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.063/2.063, 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.001188/0.001188, allocations: 97.86 kB / 262.1 MB, free: 13.87 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.3048/0.3048, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.111e-05/2.107e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4152/0.4153, allocations: 58.85 MB / 477.2 MB, free: 5.176 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1642/0.5795, allocations: 85.58 MB / 0.5496 GB, free: 13.63 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002463/0.5799, allocations: 67.47 kB / 0.5496 GB, free: 13.57 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.013/0.5929, allocations: 2.745 MB / 0.5523 GB, free: 10.82 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5929, allocations: 0 / 0.5523 GB, free: 10.82 MB / 395.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.593, allocations: 0 / 0.5523 GB, free: 10.82 MB / 395.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.0004211/0.5934, allocations: 380.1 kB / 0.5527 GB, free: 10.4 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.5934, allocations: 12.03 kB / 0.5527 GB, free: 10.39 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.391e-05/0.5935, allocations: 3.953 kB / 0.5527 GB, free: 10.38 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.5936, allocations: 163.1 kB / 0.5528 GB, free: 10.18 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.5936, allocations: 0 / 0.5528 GB, free: 10.18 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.186e-06/0.5936, allocations: 4 kB / 0.5528 GB, free: 10.18 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.701e-05/0.5937, allocations: 7.938 kB / 0.5528 GB, free: 10.17 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.137e-05/0.5938, allocations: 29.7 kB / 0.5529 GB, free: 10.14 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.5938, allocations: 0 / 0.5529 GB, free: 10.14 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.5938, allocations: 0 / 0.5529 GB, free: 10.14 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.5938, allocations: 3.953 kB / 0.5529 GB, free: 10.13 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001251/0.594, allocations: 126.2 kB / 0.553 GB, free: 9.973 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.835e-05/0.594, allocations: 18.56 kB / 0.553 GB, free: 9.945 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.56e-05/0.594, allocations: 8.859 kB / 0.553 GB, free: 9.934 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.109e-06/0.5941, allocations: 0 / 0.553 GB, free: 9.934 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.237e-05/0.5941, allocations: 66.89 kB / 0.5531 GB, free: 9.855 MB / 395.1 MB Notification: Performance of pre-optimization done (n=1): time 1.482e-06/0.5941, allocations: 0 / 0.5531 GB, free: 9.855 MB / 395.1 MB Notification: Performance of matching and sorting (n=1): time 0.000168/0.5943, allocations: 33.7 kB / 0.5531 GB, free: 9.816 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/0.5944, allocations: 77.11 kB / 0.5532 GB, free: 9.723 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.398e-05/0.5944, allocations: 85 kB / 0.5533 GB, free: 9.633 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.5945, allocations: 33.73 kB / 0.5533 GB, free: 9.594 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.317e-05/0.5945, allocations: 150.6 kB / 0.5535 GB, free: 9.445 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.741e-05/0.5945, allocations: 0 / 0.5535 GB, free: 9.445 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-06/0.5946, allocations: 0 / 0.5535 GB, free: 9.445 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.5947, allocations: 318.8 kB / 0.5538 GB, free: 9.125 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.277e-06/0.5947, allocations: 0 / 0.5538 GB, free: 9.125 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.666e-06/0.5947, allocations: 4 kB / 0.5538 GB, free: 9.121 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.065e-05/0.5948, allocations: 0 / 0.5538 GB, free: 9.121 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5948, allocations: 0 / 0.5538 GB, free: 9.121 MB / 395.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.576e-05/0.5949, allocations: 41.7 kB / 0.5538 GB, free: 9.074 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.721e-05/0.5949, allocations: 33.7 kB / 0.5538 GB, free: 9.035 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.5949, allocations: 0 / 0.5538 GB, free: 9.035 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.595, allocations: 7.922 kB / 0.5538 GB, free: 9.027 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-06/0.595, allocations: 0 / 0.5538 GB, free: 9.027 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.595, allocations: 3.938 kB / 0.5538 GB, free: 9.023 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.898e-05/0.595, allocations: 4 kB / 0.5538 GB, free: 9.02 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.595, allocations: 4 kB / 0.5539 GB, free: 9.016 MB / 395.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.000115/0.5952, allocations: 134.6 kB / 0.554 GB, free: 8.871 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.128e-05/0.5953, allocations: 37.73 kB / 0.554 GB, free: 8.828 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.22e-05/0.5953, allocations: 7.984 kB / 0.554 GB, free: 8.82 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.63e-05/0.5953, allocations: 3.75 kB / 0.554 GB, free: 8.812 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.5953, allocations: 3.984 kB / 0.554 GB, free: 8.809 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.5953, allocations: 0 / 0.554 GB, free: 8.809 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.5953, allocations: 0 / 0.554 GB, free: 8.809 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.274e-05/0.5954, allocations: 126.2 kB / 0.5542 GB, free: 8.648 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.5955, allocations: 0 / 0.5542 GB, free: 8.648 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.5955, allocations: 4 kB / 0.5542 GB, free: 8.645 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.5955, allocations: 0 / 0.5542 GB, free: 8.645 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.5955, allocations: 12.02 kB / 0.5542 GB, free: 8.633 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.491e-06/0.5955, allocations: 3.938 kB / 0.5542 GB, free: 8.629 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.5955, allocations: 0 / 0.5542 GB, free: 8.629 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001107/0.5956, allocations: 61.72 kB / 0.5542 GB, free: 8.551 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.762e-05/0.5957, allocations: 77.11 kB / 0.5543 GB, free: 8.457 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.79e-05/0.5957, allocations: 3.984 kB / 0.5543 GB, free: 8.453 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.117e-05/0.5957, allocations: 0 / 0.5543 GB, free: 8.453 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.643e-05/0.5958, allocations: 4.031 kB / 0.5543 GB, free: 8.449 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.5958, allocations: 8 kB / 0.5543 GB, free: 8.441 MB / 395.1 MB Notification: Performance of sorting global known variables: time 3.359e-05/0.5958, allocations: 75.28 kB / 0.5544 GB, free: 8.367 MB / 395.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5958, allocations: 0 / 0.5544 GB, free: 8.367 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0004938/0.5963, allocations: 79.86 kB / 0.5545 GB, free: 8.289 MB / 395.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.0009346/0.5973, allocations: 0.7001 MB / 0.5552 GB, free: 7.562 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 9.238e-05/0.5974, allocations: 67.39 kB / 0.5552 GB, free: 7.484 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.5974, allocations: 0 / 0.5552 GB, free: 7.484 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 3.963e-05/0.5975, allocations: 55.41 kB / 0.5553 GB, free: 7.418 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001123/0.5976, allocations: 7.984 kB / 0.5553 GB, free: 7.41 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003612/0.598, allocations: 135.3 kB / 0.5554 GB, free: 7.234 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.5982, allocations: 0.6883 MB / 0.5561 GB, free: 6.52 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.466e-05/0.5983, allocations: 7.438 kB / 0.5561 GB, free: 6.512 MB / 395.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5983, allocations: 0 / 0.5561 GB, free: 6.512 MB / 395.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_TestMatricesCalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesFMU.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_TestMatrices.so OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.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_TestMatricesCalcHelperMain.o: In function `Functions::Modelica_Math_Matrices_LAPACK_dgglse__vec(BaseArray&, BaseArray&, BaseArray&, BaseArray&, Modelica_Math_Matrices_LAPACK_dgglse__vecType&)': /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices/./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesFunctions.cpp:241: undefined reference to `dgglse_' OMCppModelicaTest_3_2_3_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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices/./OMCppModelicaTest_3_2_3_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_3_cpp_ModelicaTest_Math_TestMatrices_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices.fmu' failed make: *** [ModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatrices.fmu] Error 1