Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test84,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.523/2.523, allocations: 270 MB / 282.6 MB, free: 1.949 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.719e-05/3.724e-05, allocations: 4 kB / 347.1 MB, free: 3.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4314/0.4315, allocations: 61.87 MB / 408.9 MB, free: 10.82 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1732/0.6047, allocations: 89.5 MB / 498.4 MB, free: 1.199 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/0.6051, allocations: 71.95 kB / 498.5 MB, free: 1.129 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02714/0.6322, allocations: 5.921 MB / 0.4926 GB, free: 11.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.6323, allocations: 4 kB / 0.4926 GB, free: 11.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.832e-05/0.6324, allocations: 4 kB / 0.4926 GB, free: 11.19 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.0005984/0.633, allocations: 390.3 kB / 0.493 GB, free: 10.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/0.633, allocations: 8.031 kB / 0.493 GB, free: 10.76 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.862e-05/0.6331, allocations: 30.56 kB / 0.493 GB, free: 10.72 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.918e-05/0.6331, allocations: 11.89 kB / 0.493 GB, free: 10.71 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.6336, allocations: 214.8 kB / 0.4932 GB, free: 10.46 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.6336, allocations: 0 / 0.4932 GB, free: 10.46 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.595e-05/0.6336, allocations: 11.97 kB / 0.4932 GB, free: 10.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001937/0.6338, allocations: 79.34 kB / 0.4933 GB, free: 10.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.6339, allocations: 0 / 0.4933 GB, free: 10.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.6339, allocations: 0 / 0.4933 GB, free: 10.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.6339, allocations: 7.984 kB / 0.4933 GB, free: 10.35 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.418e-05/0.634, allocations: 16 kB / 0.4933 GB, free: 10.33 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004814/0.6345, allocations: 288.8 kB / 0.4936 GB, free: 10 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.6347, allocations: 58.69 kB / 0.4937 GB, free: 9.934 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.375e-05/0.6348, allocations: 20.97 kB / 0.4937 GB, free: 9.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.6348, allocations: 0 / 0.4937 GB, free: 9.91 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000171/0.635, allocations: 63.41 kB / 0.4938 GB, free: 9.836 MB / 426.7 MB Notification: Performance of pre-optimization done (n=6): time 2.224e-06/0.635, allocations: 0 / 0.4938 GB, free: 9.836 MB / 426.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006238/0.6356, allocations: 153.3 kB / 0.4939 GB, free: 9.68 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.909e-05/0.6357, allocations: 81.11 kB / 0.494 GB, free: 9.582 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/0.6359, allocations: 147.8 kB / 0.4941 GB, free: 9.434 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.974e-05/0.636, allocations: 33.69 kB / 0.4942 GB, free: 9.395 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.83e-05/0.6361, allocations: 158.5 kB / 0.4943 GB, free: 9.238 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.812e-05/0.6361, allocations: 23.66 kB / 0.4943 GB, free: 9.215 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.713e-06/0.6361, allocations: 0 / 0.4943 GB, free: 9.215 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.6363, allocations: 322.8 kB / 0.4946 GB, free: 8.891 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.574e-05/0.6364, allocations: 24 kB / 0.4947 GB, free: 8.867 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.788e-05/0.6365, allocations: 38.52 kB / 0.4947 GB, free: 8.82 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.425e-05/0.6366, allocations: 24.05 kB / 0.4947 GB, free: 8.797 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.6366, allocations: 0 / 0.4947 GB, free: 8.797 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000227/0.6368, allocations: 85.69 kB / 0.4948 GB, free: 8.707 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.6369, allocations: 4 kB / 0.4948 GB, free: 8.703 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.6369, allocations: 4 kB / 0.4948 GB, free: 8.699 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.6369, allocations: 4.062 kB / 0.4948 GB, free: 8.695 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.6371, allocations: 19.92 kB / 0.4948 GB, free: 8.676 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.6371, allocations: 3.953 kB / 0.4948 GB, free: 8.672 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.571e-05/0.6372, allocations: 8 kB / 0.4948 GB, free: 8.664 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.6372, allocations: 4 kB / 0.4948 GB, free: 8.66 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 9.624e-05/0.6373, allocations: 113 kB / 0.495 GB, free: 8.543 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.005e-05/0.6374, allocations: 7.906 kB / 0.495 GB, free: 8.535 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00033/0.6377, allocations: 106.2 kB / 0.4951 GB, free: 8.426 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/0.6377, allocations: 8 kB / 0.4951 GB, free: 8.418 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.6378, allocations: 0 / 0.4951 GB, free: 8.418 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.6378, allocations: 12.16 kB / 0.4951 GB, free: 8.406 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006222/0.6384, allocations: 395.2 kB / 0.4955 GB, free: 7.961 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.6384, allocations: 0 / 0.4955 GB, free: 7.961 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-05/0.6385, allocations: 15.92 kB / 0.4955 GB, free: 7.945 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.125e-06/0.6385, allocations: 4 kB / 0.4955 GB, free: 7.941 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.6386, allocations: 0 / 0.4955 GB, free: 7.941 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.6386, allocations: 4.141 kB / 0.4955 GB, free: 7.938 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.503e-06/0.6386, allocations: 12.03 kB / 0.4955 GB, free: 7.926 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003057/0.6389, allocations: 210 kB / 0.4957 GB, free: 7.695 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.514e-05/0.639, allocations: 93 kB / 0.4958 GB, free: 7.586 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.921e-05/0.6391, allocations: 7.953 kB / 0.4958 GB, free: 7.578 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.6392, allocations: 0 / 0.4958 GB, free: 7.578 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.428e-05/0.6393, allocations: 15.98 kB / 0.4958 GB, free: 7.562 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.6393, allocations: 4 kB / 0.4958 GB, free: 7.559 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001489/0.6394, allocations: 121.8 kB / 0.4959 GB, free: 7.441 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6395, allocations: 0 / 0.4959 GB, free: 7.441 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004207/0.6399, allocations: 43.92 kB / 0.496 GB, free: 7.398 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.002072/0.642, allocations: 1.219 MB / 0.4972 GB, free: 6.309 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002601/0.6423, allocations: 59.92 kB / 0.4972 GB, free: 6.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.6423, allocations: 0 / 0.4972 GB, free: 6.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.6424, allocations: 24 kB / 0.4972 GB, free: 6.227 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000411/0.6428, allocations: 30.81 kB / 0.4973 GB, free: 6.199 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007735/0.6436, allocations: 222.3 kB / 0.4975 GB, free: 5.934 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003258/0.644, allocations: 0.7045 MB / 0.4982 GB, free: 5.203 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.6441, allocations: 31.42 kB / 0.4982 GB, free: 5.172 MB / 426.7 MB Notification: Performance of SimCode: time 1.282e-06/0.6441, allocations: 3.938 kB / 0.4982 GB, free: 5.168 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_Test84CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84Functions.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_Test84CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84InitializeParameter.cpp:44:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84InitializeParameter.cpp:45:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest trunk/Resources/Data/Tables/test_utf8.txt", tmp27); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84Initialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest trunk/Resources/Data/Tables/test_utf8.txt", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84Initialize.cpp:300:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84Initialize.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_Test84CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84.cpp:785:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84FMU.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_Test84CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test84CalcHelperMain.o] Error 1