Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test56,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.635/2.635, allocations: 270 MB / 282.6 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.428e-05/3.456e-05, allocations: 4 kB / 347.1 MB, free: 3.094 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3961/0.3962, allocations: 61.86 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1913/0.5875, allocations: 89.51 MB / 498.4 MB, free: 1.027 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000349/0.588, allocations: 75.94 kB / 498.5 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05363/0.6416, allocations: 5.925 MB / 0.4926 GB, free: 11.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6417, allocations: 0 / 0.4926 GB, free: 11.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.241e-05/0.6417, allocations: 7.938 kB / 0.4926 GB, free: 11.01 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.0007308/0.6425, allocations: 386.4 kB / 0.493 GB, free: 10.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/0.6425, allocations: 8.031 kB / 0.493 GB, free: 10.58 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001025/0.6465, allocations: 34.56 kB / 0.493 GB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.6466, allocations: 11.91 kB / 0.493 GB, free: 10.53 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005527/0.6472, allocations: 210.8 kB / 0.4932 GB, free: 10.28 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/0.6472, allocations: 4 kB / 0.4932 GB, free: 10.28 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.968e-05/0.6473, allocations: 4 kB / 0.4932 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002331/0.6475, allocations: 71.33 kB / 0.4933 GB, free: 10.19 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.6476, allocations: 3.938 kB / 0.4933 GB, free: 10.19 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/0.6476, allocations: 0 / 0.4933 GB, free: 10.19 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.6476, allocations: 4 kB / 0.4933 GB, free: 10.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.6477, allocations: 23.98 kB / 0.4933 GB, free: 10.16 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006203/0.6484, allocations: 284.8 kB / 0.4936 GB, free: 9.832 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002274/0.6486, allocations: 54.69 kB / 0.4937 GB, free: 9.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.228e-05/0.6487, allocations: 16.98 kB / 0.4937 GB, free: 9.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.6488, allocations: 0 / 0.4937 GB, free: 9.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000235/0.649, allocations: 71.39 kB / 0.4937 GB, free: 9.668 MB / 426.7 MB Notification: Performance of pre-optimization done (n=6): time 2.845e-06/0.649, allocations: 0 / 0.4937 GB, free: 9.668 MB / 426.7 MB Notification: Performance of matching and sorting (n=8): time 0.000809/0.6499, allocations: 149.3 kB / 0.4939 GB, free: 9.516 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.524e-05/0.65, allocations: 85.11 kB / 0.494 GB, free: 9.414 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002828/0.6503, allocations: 147.6 kB / 0.4941 GB, free: 9.266 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/0.6503, allocations: 25.7 kB / 0.4941 GB, free: 9.234 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.6505, allocations: 162.5 kB / 0.4943 GB, free: 9.074 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.663e-05/0.6505, allocations: 27.64 kB / 0.4943 GB, free: 9.047 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.006e-06/0.6506, allocations: 4 kB / 0.4943 GB, free: 9.043 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.6508, allocations: 314.8 kB / 0.4946 GB, free: 8.727 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.521e-05/0.6509, allocations: 20 kB / 0.4946 GB, free: 8.707 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.651, allocations: 42.5 kB / 0.4947 GB, free: 8.656 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001169/0.6512, allocations: 28.05 kB / 0.4947 GB, free: 8.629 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.6512, allocations: 0 / 0.4947 GB, free: 8.629 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003266/0.6515, allocations: 89.72 kB / 0.4948 GB, free: 8.535 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.6516, allocations: 4 kB / 0.4948 GB, free: 8.531 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.6516, allocations: 4 kB / 0.4948 GB, free: 8.527 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.6516, allocations: 3.938 kB / 0.4948 GB, free: 8.523 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.6518, allocations: 15.98 kB / 0.4948 GB, free: 8.508 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.6519, allocations: 3.953 kB / 0.4948 GB, free: 8.504 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.652, allocations: 4 kB / 0.4948 GB, free: 8.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.652, allocations: 4 kB / 0.4948 GB, free: 8.496 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 (10): * Single equations (assignments): 10 * 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.0001317/0.6522, allocations: 110.5 kB / 0.4949 GB, free: 8.383 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.23e-05/0.6522, allocations: 11.94 kB / 0.495 GB, free: 8.371 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004366/0.6527, allocations: 118.5 kB / 0.4951 GB, free: 8.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.6527, allocations: 4 kB / 0.4951 GB, free: 8.246 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.6528, allocations: 7.984 kB / 0.4951 GB, free: 8.238 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.6528, allocations: 3.953 kB / 0.4951 GB, free: 8.234 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008232/0.6536, allocations: 399.2 kB / 0.4955 GB, free: 7.785 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.6536, allocations: 0 / 0.4955 GB, free: 7.785 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.6538, allocations: 20.02 kB / 0.4955 GB, free: 7.766 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.248e-05/0.6538, allocations: 4 kB / 0.4955 GB, free: 7.762 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.6538, allocations: 0 / 0.4955 GB, free: 7.762 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/0.6538, allocations: 3.953 kB / 0.4955 GB, free: 7.758 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.6539, allocations: 4 kB / 0.4955 GB, free: 7.754 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004155/0.6543, allocations: 210 kB / 0.4957 GB, free: 7.523 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.352e-05/0.6544, allocations: 93 kB / 0.4958 GB, free: 7.414 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.296e-05/0.6545, allocations: 7.953 kB / 0.4958 GB, free: 7.406 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.6547, allocations: 4 kB / 0.4958 GB, free: 7.402 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.534e-05/0.6548, allocations: 11.92 kB / 0.4958 GB, free: 7.391 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.05e-05/0.6548, allocations: 4 kB / 0.4958 GB, free: 7.387 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001945/0.655, allocations: 121.8 kB / 0.4959 GB, free: 7.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.655, allocations: 0 / 0.4959 GB, free: 7.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006368/0.6557, allocations: 47.91 kB / 0.496 GB, free: 7.223 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 (9): * Single equations (assignments): 7 * 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.002815/0.6585, allocations: 1.217 MB / 0.4972 GB, free: 6.137 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003183/0.6589, allocations: 59.92 kB / 0.4972 GB, free: 6.078 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.6589, allocations: 0 / 0.4972 GB, free: 6.078 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001227/0.659, allocations: 28 kB / 0.4972 GB, free: 6.051 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005261/0.6596, allocations: 23.97 kB / 0.4973 GB, free: 6.027 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.6606, allocations: 234.4 kB / 0.4975 GB, free: 5.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004126/0.6611, allocations: 0.7043 MB / 0.4982 GB, free: 5.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.6612, allocations: 31.42 kB / 0.4982 GB, free: 4.988 MB / 426.7 MB Notification: Performance of SimCode: time 3.577e-06/0.6612, allocations: 0 / 0.4982 GB, free: 4.988 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/C-Sources" -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56Functions.cpp:256:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp6.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_Test56CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56InitializeParameter.cpp:44:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56InitializeParameter.cpp:45:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Data/Tables/test_v6.mat", tmp27); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56Initialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Data/Tables/test_v6.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56Initialize.cpp:300:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56Initialize.cpp:301:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT2, tmp15); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56.cpp:785:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56FMU.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) { ^ 1 warning and 8 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.o] Error 1