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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.179/2.179, allocations: 234.9 MB / 250.4 MB, free: 9.695 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005901/0.0005902, allocations: 16 kB / 314.4 MB, free: 9.637 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3727/0.3734, allocations: 54.85 MB / 369.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1D.Test25_usertab): time 0.002898/0.3763, allocations: 1.239 MB / 370.5 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008733/0.3772, allocations: 269.2 kB / 370.8 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.618e-05/0.3773, allocations: 0 / 370.8 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002178/0.3775, allocations: 23.86 kB / 370.8 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001762/0.3777, allocations: 19.97 kB / 370.8 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001679/0.3779, allocations: 35.84 kB / 370.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001623/0.3781, allocations: 39.89 kB / 370.9 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.3782, allocations: 15.97 kB / 370.9 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.169e-05/0.3783, allocations: 19.94 kB / 370.9 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.271e-05/0.3784, allocations: 15.92 kB / 370.9 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.297e-05/0.3784, allocations: 4 kB / 370.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001499/0.3786, allocations: 31.97 kB / 371 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.703e-05/0.3787, allocations: 15.92 kB / 371 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.789e-05/0.3787, allocations: 25.7 kB / 371 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.379, allocations: 67.84 kB / 371.1 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.379, allocations: 0 / 371.1 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.379, allocations: 0 / 371.1 MB, free: 10.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.379, allocations: 0 / 371.1 MB, free: 10.95 MB / 298.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.0006097/0.3796, allocations: 403.6 kB / 371.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.3797, allocations: 8.031 kB / 371.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.505e-05/0.3798, allocations: 30.56 kB / 371.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.98e-05/0.3798, allocations: 11.86 kB / 371.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002622/0.3801, allocations: 190.9 kB / 371.7 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.3801, allocations: 4 kB / 371.7 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.73e-05/0.3802, allocations: 4 kB / 371.7 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002641/0.3805, allocations: 71.39 kB / 371.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.3805, allocations: 0 / 371.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.3805, allocations: 4 kB / 371.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.3805, allocations: 0 / 371.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002278/0.3808, allocations: 47.8 kB / 371.8 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000629/0.3814, allocations: 288.9 kB / 372.1 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001816/0.3816, allocations: 38.56 kB / 372.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/0.3817, allocations: 4 kB / 372.2 MB, free: 9.695 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/0.3817, allocations: 30.56 kB / 372.2 MB, free: 9.656 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 2.134e-06/0.3817, allocations: 0 / 372.2 MB, free: 9.656 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.001182/0.3829, allocations: 177.4 kB / 372.4 MB, free: 9.477 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.969e-05/0.383, allocations: 77.11 kB / 372.4 MB, free: 9.383 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.3833, allocations: 129.8 kB / 372.6 MB, free: 9.246 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.099e-05/0.3833, allocations: 25.7 kB / 372.6 MB, free: 9.215 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.3834, allocations: 158.5 kB / 372.7 MB, free: 9.059 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.302e-05/0.3835, allocations: 27.59 kB / 372.8 MB, free: 9.031 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.848e-06/0.3835, allocations: 0 / 372.8 MB, free: 9.031 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.3837, allocations: 310.8 kB / 373.1 MB, free: 8.719 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002116/0.3839, allocations: 35.97 kB / 373.1 MB, free: 8.684 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.3842, allocations: 45.69 kB / 373.2 MB, free: 8.633 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.3844, allocations: 57.69 kB / 373.2 MB, free: 8.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3845, allocations: 0 / 373.2 MB, free: 8.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0005645/0.385, allocations: 135.4 kB / 373.3 MB, free: 8.426 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.444e-05/0.3851, allocations: 33.69 kB / 373.4 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3851, allocations: 3.953 kB / 373.4 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.3852, allocations: 0 / 373.4 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.3854, allocations: 19.94 kB / 373.4 MB, free: 8.363 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.3854, allocations: 0 / 373.4 MB, free: 8.363 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.3855, allocations: 7.984 kB / 373.4 MB, free: 8.355 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.836e-05/0.3856, allocations: 8 kB / 373.4 MB, free: 8.348 MB / 298.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 () * Number of clocked 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 0.0001459/0.3857, allocations: 113.8 kB / 373.5 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.076e-05/0.3858, allocations: 11.91 kB / 373.5 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005901/0.3864, allocations: 110.2 kB / 373.6 MB, free: 8.098 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.3865, allocations: 7.953 kB / 373.7 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.3865, allocations: 3.984 kB / 373.7 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3865, allocations: 3.938 kB / 373.7 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009473/0.3875, allocations: 370.5 kB / 374 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.3875, allocations: 0 / 374 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001571/0.3877, allocations: 16.19 kB / 374 MB, free: 7.648 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.794e-06/0.3877, allocations: 3.953 kB / 374 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.3877, allocations: 8 kB / 374 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.3877, allocations: 3.984 kB / 374.1 MB, free: 7.633 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3877, allocations: 0 / 374.1 MB, free: 7.633 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005391/0.3883, allocations: 199.4 kB / 374.2 MB, free: 7.422 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.204e-05/0.3884, allocations: 81.11 kB / 374.3 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.493e-05/0.3884, allocations: 3.953 kB / 374.3 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.3886, allocations: 8 kB / 374.3 MB, free: 7.312 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.644e-05/0.3887, allocations: 7.984 kB / 374.3 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.3887, allocations: 0 / 374.3 MB, free: 7.305 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001226/0.3889, allocations: 95.27 kB / 374.4 MB, free: 7.211 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.3889, allocations: 4 kB / 374.4 MB, free: 7.207 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006113/0.3895, allocations: 31.98 kB / 374.5 MB, free: 7.176 MB / 298.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 () * Number of clocked 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.002287/0.3918, allocations: 1.017 MB / 375.5 MB, free: 6.227 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004806/0.3923, allocations: 123.4 kB / 375.6 MB, free: 6.094 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3923, allocations: 0 / 375.6 MB, free: 6.094 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002056/0.3926, allocations: 39.92 kB / 375.7 MB, free: 6.055 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003475/0.3929, allocations: 7.953 kB / 375.7 MB, free: 6.047 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.394, allocations: 420.7 kB / 376.1 MB, free: 5.582 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.3944, allocations: 0.6926 MB / 376.8 MB, free: 4.863 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.3945, allocations: 23.42 kB / 376.8 MB, free: 4.84 MB / 298.7 MB Notification: Performance of SimCode: time 8.51e-07/0.3945, allocations: 11.88 kB / 376.8 MB, free: 4.828 MB / 298.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=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/usertab.c:14: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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:193: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/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) { ^ 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