Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test66_usertab,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertab",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.742/2.742, allocations: 270 MB / 282.6 MB, free: 1.918 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.482e-05/3.492e-05, allocations: 4 kB / 347.1 MB, free: 3.215 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.3995, allocations: 61.87 MB / 408.9 MB, free: 10.72 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1806/0.5802, allocations: 89.3 MB / 498.2 MB, free: 1.297 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003391/0.5806, allocations: 71.97 kB / 498.3 MB, free: 1.227 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03125/0.6119, allocations: 5.344 MB / 0.4918 GB, free: 11.88 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.599e-06/0.6119, allocations: 3.984 kB / 0.4918 GB, free: 11.87 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.6119, allocations: 4 kB / 0.4918 GB, free: 11.87 MB / 426.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.0005961/0.6125, allocations: 394.2 kB / 0.4922 GB, free: 11.44 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.6126, allocations: 12.03 kB / 0.4922 GB, free: 11.43 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.49e-05/0.6127, allocations: 34.56 kB / 0.4923 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.673e-05/0.6127, allocations: 7.906 kB / 0.4923 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003802/0.6131, allocations: 210.8 kB / 0.4925 GB, free: 11.13 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.14e-05/0.6132, allocations: 8 kB / 0.4925 GB, free: 11.12 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.126e-05/0.6132, allocations: 0 / 0.4925 GB, free: 11.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.6134, allocations: 67.39 kB / 0.4925 GB, free: 11.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.6134, allocations: 0 / 0.4925 GB, free: 11.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.6134, allocations: 0 / 0.4925 GB, free: 11.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.6135, allocations: 4 kB / 0.4925 GB, free: 11.04 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.254e-05/0.6136, allocations: 23.92 kB / 0.4926 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004349/0.614, allocations: 284.9 kB / 0.4928 GB, free: 10.69 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.6142, allocations: 66.55 kB / 0.4929 GB, free: 10.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.6143, allocations: 20.98 kB / 0.4929 GB, free: 10.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.6144, allocations: 4 kB / 0.4929 GB, free: 10.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001808/0.6146, allocations: 71.39 kB / 0.493 GB, free: 10.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=7): time 4.248e-06/0.6146, allocations: 3.984 kB / 0.493 GB, free: 10.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=10): time 0.0007057/0.6153, allocations: 181.1 kB / 0.4932 GB, free: 10.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.342e-05/0.6154, allocations: 77.11 kB / 0.4932 GB, free: 10.22 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002131/0.6156, allocations: 154.7 kB / 0.4934 GB, free: 10.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.6157, allocations: 29.7 kB / 0.4934 GB, free: 10.03 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.678e-05/0.6158, allocations: 158.8 kB / 0.4936 GB, free: 9.871 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.145e-05/0.6158, allocations: 35.55 kB / 0.4936 GB, free: 9.836 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.225e-06/0.6158, allocations: 0 / 0.4936 GB, free: 9.836 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.616, allocations: 318.8 kB / 0.4939 GB, free: 9.516 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.548e-05/0.6161, allocations: 27.98 kB / 0.4939 GB, free: 9.488 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.6162, allocations: 50.58 kB / 0.494 GB, free: 9.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.6163, allocations: 27.98 kB / 0.494 GB, free: 9.402 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.6163, allocations: 4.031 kB / 0.494 GB, free: 9.398 MB / 426.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003095/0.6166, allocations: 109.5 kB / 0.4941 GB, free: 9.285 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.6167, allocations: 8 kB / 0.4941 GB, free: 9.277 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.6167, allocations: 3.984 kB / 0.4941 GB, free: 9.273 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.6167, allocations: 0 / 0.4941 GB, free: 9.273 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002226/0.617, allocations: 24 kB / 0.4942 GB, free: 9.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.617, allocations: 96 / 0.4942 GB, free: 9.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.6171, allocations: 11.92 kB / 0.4942 GB, free: 9.238 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.526e-05/0.6172, allocations: 3.953 kB / 0.4942 GB, free: 9.234 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 prepare postOptimizeDAE: time 0.0001182/0.6173, allocations: 118.4 kB / 0.4943 GB, free: 9.113 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.828e-05/0.6173, allocations: 11.91 kB / 0.4943 GB, free: 9.102 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004092/0.6178, allocations: 130.1 kB / 0.4944 GB, free: 8.969 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.6178, allocations: 0 / 0.4944 GB, free: 8.969 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.6178, allocations: 3.984 kB / 0.4944 GB, free: 8.965 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.6178, allocations: 4 kB / 0.4944 GB, free: 8.961 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008385/0.6187, allocations: 427.2 kB / 0.4948 GB, free: 8.484 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.6187, allocations: 4 kB / 0.4948 GB, free: 8.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.6188, allocations: 8 kB / 0.4948 GB, free: 8.473 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.13e-05/0.6188, allocations: 4 kB / 0.4948 GB, free: 8.469 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.6189, allocations: 4 kB / 0.4949 GB, free: 8.465 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/0.6189, allocations: 3.953 kB / 0.4949 GB, free: 8.461 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.6189, allocations: 4 kB / 0.4949 GB, free: 8.457 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003763/0.6193, allocations: 234 kB / 0.4951 GB, free: 8.203 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.903e-05/0.6194, allocations: 93 kB / 0.4952 GB, free: 8.094 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.339e-05/0.6195, allocations: 7.953 kB / 0.4952 GB, free: 8.086 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.6196, allocations: 4 kB / 0.4952 GB, free: 8.082 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.26e-05/0.6197, allocations: 7.984 kB / 0.4952 GB, free: 8.074 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.6197, allocations: 7.938 kB / 0.4952 GB, free: 8.066 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001652/0.6199, allocations: 125.5 kB / 0.4953 GB, free: 7.945 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6199, allocations: 0 / 0.4953 GB, free: 7.945 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004586/0.6204, allocations: 47.92 kB / 0.4954 GB, free: 7.898 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002193/0.6226, allocations: 1.234 MB / 0.4966 GB, free: 6.797 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003062/0.6229, allocations: 71.92 kB / 0.4966 GB, free: 6.727 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6229, allocations: 4.062 kB / 0.4966 GB, free: 6.723 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.6231, allocations: 39.94 kB / 0.4967 GB, free: 6.684 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003999/0.6235, allocations: 26.81 kB / 0.4967 GB, free: 6.66 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007564/0.6242, allocations: 246.7 kB / 0.4969 GB, free: 6.367 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.6246, allocations: 0.7043 MB / 0.4976 GB, free: 5.637 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.6247, allocations: 39.48 kB / 0.4977 GB, free: 5.598 MB / 426.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6247, allocations: 0 / 0.4977 GB, free: 5.598 MB / 426.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/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 trunk/Resources/Data/Tables" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabCalcHelperMain.cpp:28: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabFunctions.cpp:5: In file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Data/Tables/usertab.c:14: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/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 trunk/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 trunk/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 trunk/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_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabFunctions.cpp:266:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp5.getData(), table_.getDim(1), table_.getDim(2), startTime__ext, ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, shiftTime__ext, timeEvents__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:142:23: note: candidate function not viable: 7th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTimeTable_init2(_In_z_ const char* fileName, ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabFunctions.cpp:390:18: error: no matching function for call to 'mydummyfunc' dummy_y__ext = mydummyfunc(ConstArray(dummy_u_).getData()); ^~~~~~~~~~~ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_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_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_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 2 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test66_usertabCalcHelperMain.o] Error 1