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.002521/0.002521, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.182/2.182, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001174/0.001174, allocations: 74.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2974/0.2974, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.67e-05/3.686e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1523, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4893/0.6416, allocations: 86.23 MB / 0.5571 GB, free: 1.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/0.6419, allocations: 69.25 kB / 0.5572 GB, free: 1.238 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01308/0.655, allocations: 2.748 MB / 0.5598 GB, free: 14.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.6551, allocations: 4 kB / 0.5598 GB, free: 14.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.6551, allocations: 0 / 0.5598 GB, free: 14.87 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.0005284/0.6557, allocations: 398.5 kB / 0.5602 GB, free: 14.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.6557, allocations: 8.031 kB / 0.5602 GB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.49e-05/0.6558, allocations: 35.38 kB / 0.5603 GB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.821e-05/0.6558, allocations: 3.953 kB / 0.5603 GB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.656, allocations: 159.1 kB / 0.5604 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.656, allocations: 0 / 0.5604 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.564e-05/0.656, allocations: 4 kB / 0.5604 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001008/0.6561, allocations: 33.69 kB / 0.5605 GB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.6561, allocations: 0 / 0.5605 GB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.6562, allocations: 0 / 0.5605 GB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.6562, allocations: 7.953 kB / 0.5605 GB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.384e-05/0.6562, allocations: 3.875 kB / 0.5605 GB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000167/0.6564, allocations: 149.6 kB / 0.5606 GB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.318e-05/0.6565, allocations: 18.61 kB / 0.5606 GB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.375e-05/0.6565, allocations: 11.42 kB / 0.5606 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.829e-06/0.6565, allocations: 0 / 0.5606 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.524e-05/0.6566, allocations: 60.02 kB / 0.5607 GB, free: 13.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.763e-06/0.6566, allocations: 4.062 kB / 0.5607 GB, free: 13.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002017/0.6568, allocations: 59.39 kB / 0.5608 GB, free: 13.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.229e-05/0.6569, allocations: 81.05 kB / 0.5608 GB, free: 13.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.41e-05/0.6569, allocations: 85 kB / 0.5609 GB, free: 13.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.657, allocations: 29.7 kB / 0.5609 GB, free: 13.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.372e-05/0.6571, allocations: 154.6 kB / 0.5611 GB, free: 13.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/0.6571, allocations: 0 / 0.5611 GB, free: 13.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-06/0.6571, allocations: 0 / 0.5611 GB, free: 13.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.6573, allocations: 314.8 kB / 0.5614 GB, free: 13.06 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.341e-05/0.6573, allocations: 2.438 kB / 0.5614 GB, free: 13.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.192e-05/0.6573, allocations: 4 kB / 0.5614 GB, free: 13.06 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.832e-05/0.6573, allocations: 29.69 kB / 0.5614 GB, free: 13.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.6574, allocations: 0 / 0.5614 GB, free: 13.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001067/0.6575, allocations: 63.47 kB / 0.5615 GB, free: 12.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.407e-05/0.6575, allocations: 29.7 kB / 0.5615 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.6576, allocations: 3.984 kB / 0.5615 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.6576, allocations: 3.938 kB / 0.5615 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.643e-06/0.6576, allocations: 4 kB / 0.5615 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.6576, allocations: 8.547 kB / 0.5615 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.244e-05/0.6577, allocations: 0 / 0.5615 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.6577, allocations: 3.25 kB / 0.5615 GB, free: 12.89 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 0.0001066/0.6578, allocations: 134.6 kB / 0.5617 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.6578, allocations: 4.031 kB / 0.5617 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.64e-05/0.6579, allocations: 3.125 kB / 0.5617 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.6579, allocations: 0 / 0.5617 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.6579, allocations: 0 / 0.5617 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.6579, allocations: 0 / 0.5617 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001421/0.658, allocations: 157.6 kB / 0.5618 GB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.6581, allocations: 0 / 0.5618 GB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.293e-06/0.6581, allocations: 0 / 0.5618 GB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.6581, allocations: 0 / 0.5618 GB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.6581, allocations: 0 / 0.5618 GB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.6581, allocations: 0 / 0.5618 GB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.6581, allocations: 4 kB / 0.5618 GB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001399/0.6583, allocations: 94.72 kB / 0.5619 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.038e-05/0.6583, allocations: 77.73 kB / 0.562 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.906e-05/0.6584, allocations: 4 kB / 0.562 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.47e-05/0.6584, allocations: 0 / 0.562 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.005e-05/0.6584, allocations: 3.938 kB / 0.562 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.6584, allocations: 3.984 kB / 0.562 GB, free: 12.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.384e-05/0.6585, allocations: 83.06 kB / 0.5621 GB, free: 12.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6585, allocations: 0 / 0.5621 GB, free: 12.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000522/0.659, allocations: 83.86 kB / 0.5622 GB, free: 12.15 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.001122/0.6602, allocations: 0.7358 MB / 0.5629 GB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001169/0.6603, allocations: 59.34 kB / 0.5629 GB, free: 11.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.6603, allocations: 0 / 0.5629 GB, free: 11.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.058e-05/0.6604, allocations: 59.47 kB / 0.563 GB, free: 11.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000111/0.6605, allocations: 10.72 kB / 0.563 GB, free: 11.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004014/0.6609, allocations: 143.4 kB / 0.5631 GB, free: 11.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002888/0.6612, allocations: 0.6692 MB / 0.5638 GB, free: 10.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.928e-05/0.6613, allocations: 7.438 kB / 0.5638 GB, free: 10.36 MB / 378.7 MB Notification: Performance of SimCode: time 1.273e-06/0.6613, allocations: 0 / 0.5638 GB, free: 10.36 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=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_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/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_TestMatrices.so OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Math_TestMatricesCalcHelperMain.o -L"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../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/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 -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:622: 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