Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertab.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.Tables.CombiTable1D.Test25_usertab,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertab",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.506/2.506, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.278e-05/2.28e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3554, allocations: 54.85 MB / 358.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1553/0.5109, allocations: 80.33 MB / 438.5 MB, free: 14.49 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.5112, allocations: 71.97 kB / 438.5 MB, free: 14.42 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01172/0.523, allocations: 2.766 MB / 441.3 MB, free: 11.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.523, allocations: 0 / 441.3 MB, free: 11.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.523, allocations: 0 / 441.3 MB, free: 11.65 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005331/0.5236, allocations: 392.1 kB / 441.7 MB, free: 11.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.5236, allocations: 11.97 kB / 441.7 MB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.722e-05/0.5237, allocations: 11.86 kB / 441.7 MB, free: 11.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002717/0.524, allocations: 182.9 kB / 441.9 MB, free: 10.97 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.524, allocations: 0 / 441.9 MB, free: 10.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/0.524, allocations: 4 kB / 441.9 MB, free: 10.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001071/0.5242, allocations: 23.98 kB / 441.9 MB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000139/0.5243, allocations: 63.34 kB / 442 MB, free: 10.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.5243, allocations: 0 / 442 MB, free: 10.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.5244, allocations: 0 / 442 MB, free: 10.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.5244, allocations: 3.953 kB / 442 MB, free: 10.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004738/0.5249, allocations: 261.5 kB / 442.2 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.167e-05/0.525, allocations: 34.58 kB / 442.3 MB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.155e-05/0.525, allocations: 12.86 kB / 442.3 MB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.5251, allocations: 7.938 kB / 442.3 MB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.5251, allocations: 34.64 kB / 442.3 MB, free: 10.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 1.723e-06/0.5251, allocations: 0 / 442.3 MB, free: 10.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005511/0.5257, allocations: 111.2 kB / 442.4 MB, free: 10.35 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.5257, allocations: 81.11 kB / 442.5 MB, free: 10.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.5259, allocations: 116.9 kB / 442.6 MB, free: 10.13 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.5259, allocations: 29.64 kB / 442.6 MB, free: 10.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.42e-05/0.526, allocations: 158.6 kB / 442.8 MB, free: 9.941 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.782e-05/0.5261, allocations: 15.72 kB / 442.8 MB, free: 9.926 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.713e-06/0.5261, allocations: 0 / 442.8 MB, free: 9.926 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.5263, allocations: 314.8 kB / 443.1 MB, free: 9.609 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.716e-05/0.5263, allocations: 15.98 kB / 443.1 MB, free: 9.594 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.898e-05/0.5264, allocations: 29.72 kB / 443.2 MB, free: 9.559 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.669e-05/0.5265, allocations: 19.98 kB / 443.2 MB, free: 9.539 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.5265, allocations: 0 / 443.2 MB, free: 9.539 MB / 378.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001937/0.5267, allocations: 73.62 kB / 443.3 MB, free: 9.461 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.111e-05/0.5268, allocations: 29.7 kB / 443.3 MB, free: 9.426 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.5268, allocations: 7.922 kB / 443.3 MB, free: 9.418 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.5268, allocations: 4 kB / 443.3 MB, free: 9.414 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.527, allocations: 20.16 kB / 443.3 MB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.527, allocations: 3.938 kB / 443.3 MB, free: 9.391 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.72e-05/0.5271, allocations: 12.02 kB / 443.3 MB, free: 9.379 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.545e-05/0.5271, allocations: 4 kB / 443.3 MB, free: 9.375 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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 9.123e-05/0.5272, allocations: 101 kB / 443.4 MB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001767/0.5274, allocations: 69.59 kB / 443.5 MB, free: 9.195 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.886e-05/0.5275, allocations: 11.89 kB / 443.5 MB, free: 9.184 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002443/0.5277, allocations: 98.11 kB / 443.6 MB, free: 9.086 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.5277, allocations: 0 / 443.6 MB, free: 9.086 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.5278, allocations: 0 / 443.6 MB, free: 9.086 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.5278, allocations: 4 kB / 443.6 MB, free: 9.082 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004652/0.5282, allocations: 311.1 kB / 443.9 MB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.5283, allocations: 0 / 443.9 MB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.5284, allocations: 15.98 kB / 443.9 MB, free: 8.719 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.5284, allocations: 3.953 kB / 443.9 MB, free: 8.715 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.5284, allocations: 0 / 443.9 MB, free: 8.715 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.5284, allocations: 4 kB / 443.9 MB, free: 8.711 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.5284, allocations: 3.938 kB / 443.9 MB, free: 8.707 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002221/0.5287, allocations: 167.4 kB / 444.1 MB, free: 8.527 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.247e-05/0.5288, allocations: 89.02 kB / 444.2 MB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.481e-05/0.5288, allocations: 4.203 kB / 444.2 MB, free: 8.418 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.5289, allocations: 8 kB / 444.2 MB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.861e-05/0.529, allocations: 7.984 kB / 444.2 MB, free: 8.402 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.529, allocations: 0 / 444.2 MB, free: 8.402 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.189e-05/0.5291, allocations: 99.27 kB / 444.3 MB, free: 8.305 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5291, allocations: 0 / 444.3 MB, free: 8.305 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003801/0.5295, allocations: 31.94 kB / 444.3 MB, free: 8.273 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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.001387/0.5309, allocations: 0.9305 MB / 445.3 MB, free: 7.363 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002605/0.5312, allocations: 99.39 kB / 445.4 MB, free: 7.254 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.5312, allocations: 4 kB / 445.4 MB, free: 7.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.148e-05/0.5313, allocations: 23.88 kB / 445.4 MB, free: 7.227 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.5316, allocations: 7.953 kB / 445.4 MB, free: 7.219 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000618/0.5322, allocations: 183.2 kB / 445.6 MB, free: 6.992 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.5325, allocations: 0.6923 MB / 446.3 MB, free: 6.273 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.5327, allocations: 27.42 kB / 446.3 MB, free: 6.246 MB / 378.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5327, allocations: 0 / 446.3 MB, free: 6.246 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"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables" -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabCalcHelperMain.cpp:28: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabFunctions.cpp:5: In file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/usertab.c:14: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/usertab.h:75:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] {"TestTable_1D_Time", TestTable_1D_Time, 0, {6, 2}} ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/usertab.h:76:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ,{"TestTable_1D_a" , TestTable_1D_a, 1, {4, 2}} ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/usertab.h:77:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ,{"TestTable_1D_b" , TestTable_1D_b, 1, {5, 3}} ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/usertab.h:78:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ,{"TestTable_2D" , TestTable_2D, 2, {5, 4}} ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabFunctions.cpp:276:18: error: no matching function for call to 'mydummyfunc' dummy_y__ext = mydummyfunc(ConstArray(dummy_u_).getData()); ^~~~~~~~~~~ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabFunctions.cpp:6:8: note: candidate function not viable: 1st argument ('const double *') would lose const qualifier double mydummyfunc(double* dummy_in) { ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabFMU.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) { ^ 5 warnings and 1 error generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabCalcHelperMain.o] Error 1