Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test60,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.433/2.433, allocations: 270 MB / 282.7 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.792e-05/3.806e-05, allocations: 4 kB / 347.1 MB, free: 3.105 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.412/0.4121, allocations: 61.88 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2117/0.6239, allocations: 89.5 MB / 498.4 MB, free: 1.035 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003353/0.6243, allocations: 75.95 kB / 498.5 MB, free: 0.9609 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03301/0.6573, allocations: 5.921 MB / 0.4926 GB, free: 11.03 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.6574, allocations: 0 / 0.4926 GB, free: 11.03 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.289e-05/0.6574, allocations: 8 kB / 0.4926 GB, free: 11.02 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.0007058/0.6582, allocations: 390.3 kB / 0.493 GB, free: 10.6 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.372e-05/0.6583, allocations: 12.03 kB / 0.493 GB, free: 10.59 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.317e-05/0.6584, allocations: 34.5 kB / 0.493 GB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.179e-05/0.6584, allocations: 7.906 kB / 0.493 GB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004827/0.6589, allocations: 210.8 kB / 0.4932 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.659, allocations: 0 / 0.4932 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.659, allocations: 7.938 kB / 0.4933 GB, free: 10.28 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002255/0.6593, allocations: 75.39 kB / 0.4933 GB, free: 10.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.6593, allocations: 4 kB / 0.4933 GB, free: 10.19 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.6593, allocations: 0 / 0.4933 GB, free: 10.19 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.6594, allocations: 0 / 0.4933 GB, free: 10.19 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001071/0.6595, allocations: 19.98 kB / 0.4933 GB, free: 10.17 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000577/0.6601, allocations: 280.9 kB / 0.4936 GB, free: 9.848 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002184/0.6603, allocations: 62.61 kB / 0.4937 GB, free: 9.777 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.428e-05/0.6604, allocations: 24.97 kB / 0.4937 GB, free: 9.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.6604, allocations: 0 / 0.4937 GB, free: 9.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001933/0.6607, allocations: 63.41 kB / 0.4938 GB, free: 9.676 MB / 426.7 MB Notification: Performance of pre-optimization done (n=6): time 2.394e-06/0.6607, allocations: 3.938 kB / 0.4938 GB, free: 9.672 MB / 426.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007446/0.6614, allocations: 149.4 kB / 0.4939 GB, free: 9.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.974e-05/0.6615, allocations: 77.11 kB / 0.494 GB, free: 9.426 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000268/0.6618, allocations: 148.7 kB / 0.4941 GB, free: 9.273 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.6619, allocations: 25.7 kB / 0.4941 GB, free: 9.242 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.662, allocations: 170.5 kB / 0.4943 GB, free: 9.074 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.75e-05/0.662, allocations: 27.64 kB / 0.4943 GB, free: 9.047 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.866e-06/0.6621, allocations: 0 / 0.4943 GB, free: 9.047 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.6623, allocations: 314.8 kB / 0.4946 GB, free: 8.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.367e-05/0.6624, allocations: 19.98 kB / 0.4947 GB, free: 8.711 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.6625, allocations: 46.58 kB / 0.4947 GB, free: 8.656 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/0.6626, allocations: 23.92 kB / 0.4947 GB, free: 8.633 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.6626, allocations: 0 / 0.4947 GB, free: 8.633 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000317/0.663, allocations: 81.69 kB / 0.4948 GB, free: 8.547 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.663, allocations: 9.562 kB / 0.4948 GB, free: 8.539 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.663, allocations: 4.062 kB / 0.4948 GB, free: 8.535 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.6631, allocations: 0 / 0.4948 GB, free: 8.535 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001952/0.6633, allocations: 23.92 kB / 0.4948 GB, free: 8.512 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.6633, allocations: 7.891 kB / 0.4948 GB, free: 8.504 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.6634, allocations: 8.062 kB / 0.4948 GB, free: 8.496 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.6635, allocations: 4 kB / 0.4949 GB, free: 8.492 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.0001214/0.6636, allocations: 113.7 kB / 0.495 GB, free: 8.379 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.437e-05/0.6637, allocations: 11.89 kB / 0.495 GB, free: 8.367 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000418/0.6641, allocations: 110.2 kB / 0.4951 GB, free: 8.254 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.6641, allocations: 0 / 0.4951 GB, free: 8.254 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.6641, allocations: 0 / 0.4951 GB, free: 8.254 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.6642, allocations: 7.938 kB / 0.4951 GB, free: 8.246 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007947/0.665, allocations: 399.2 kB / 0.4955 GB, free: 7.797 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.665, allocations: 4 kB / 0.4955 GB, free: 7.793 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.6651, allocations: 11.98 kB / 0.4955 GB, free: 7.781 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.6651, allocations: 0 / 0.4955 GB, free: 7.781 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.6652, allocations: 4.281 kB / 0.4955 GB, free: 7.777 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.6652, allocations: 3.953 kB / 0.4955 GB, free: 7.773 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.6652, allocations: 0 / 0.4955 GB, free: 7.773 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000427/0.6656, allocations: 221.9 kB / 0.4957 GB, free: 7.531 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.822e-05/0.6658, allocations: 93 kB / 0.4958 GB, free: 7.422 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.947e-05/0.6658, allocations: 3.953 kB / 0.4958 GB, free: 7.418 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001933/0.666, allocations: 4 kB / 0.4958 GB, free: 7.414 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.799e-05/0.6661, allocations: 7.984 kB / 0.4958 GB, free: 7.406 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.6661, allocations: 4 kB / 0.4958 GB, free: 7.402 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000203/0.6663, allocations: 123.3 kB / 0.4959 GB, free: 7.281 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6664, allocations: 0 / 0.4959 GB, free: 7.281 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000628/0.667, allocations: 39.92 kB / 0.496 GB, free: 7.242 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.003249/0.6703, allocations: 1.227 MB / 0.4972 GB, free: 6.145 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003583/0.6707, allocations: 59.86 kB / 0.4972 GB, free: 6.086 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.6707, allocations: 4.062 kB / 0.4972 GB, free: 6.082 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.6709, allocations: 28 kB / 0.4972 GB, free: 6.055 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006016/0.6715, allocations: 26.22 kB / 0.4973 GB, free: 6.031 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.6726, allocations: 226.3 kB / 0.4975 GB, free: 5.762 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000447/0.6731, allocations: 0.7004 MB / 0.4982 GB, free: 5.035 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001506/0.6733, allocations: 35.48 kB / 0.4982 GB, free: 5 MB / 426.7 MB Notification: Performance of SimCode: time 1.413e-06/0.6733, allocations: 0 / 0.4982 GB, free: 5 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_Test60CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60Functions.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_Test60CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60InitializeParameter.cpp:44:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60InitializeParameter.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.txt", tmp27); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60Initialize.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.txt", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60Initialize.cpp:300:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60Initialize.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_Test60CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60.cpp:785:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60FMU.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_Test60CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.o] Error 1