Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test50,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.727/2.727, allocations: 270 MB / 282.6 MB, free: 1.918 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.592e-05/4.616e-05, allocations: 8 kB / 347.1 MB, free: 3.203 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3986/0.3987, allocations: 61.87 MB / 408.9 MB, free: 10.8 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1674/0.5662, allocations: 89.52 MB / 498.4 MB, free: 1.168 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002814/0.5665, allocations: 75.95 kB / 498.5 MB, free: 1.094 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02806/0.5946, allocations: 6.171 MB / 0.4929 GB, free: 10.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5946, allocations: 0 / 0.4929 GB, free: 10.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.288e-05/0.5947, allocations: 7.984 kB / 0.4929 GB, free: 10.9 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006463/0.5953, allocations: 405.3 kB / 0.4933 GB, free: 10.46 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.5954, allocations: 8.031 kB / 0.4933 GB, free: 10.46 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.584e-05/0.5955, allocations: 38.56 kB / 0.4933 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.988e-05/0.5955, allocations: 11.91 kB / 0.4933 GB, free: 10.4 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004152/0.596, allocations: 212.7 kB / 0.4935 GB, free: 10.15 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.596, allocations: 3.953 kB / 0.4935 GB, free: 10.14 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.917e-05/0.596, allocations: 4 kB / 0.4935 GB, free: 10.14 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002083/0.5963, allocations: 75.39 kB / 0.4936 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.5963, allocations: 3.938 kB / 0.4936 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.5963, allocations: 7.922 kB / 0.4936 GB, free: 10.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.5963, allocations: 4 kB / 0.4936 GB, free: 10.04 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001236/0.5965, allocations: 27.98 kB / 0.4936 GB, free: 10.01 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005318/0.597, allocations: 300.7 kB / 0.4939 GB, free: 9.668 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002545/0.5973, allocations: 70.67 kB / 0.494 GB, free: 9.59 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.884e-05/0.5974, allocations: 24.98 kB / 0.494 GB, free: 9.562 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.589e-05/0.5974, allocations: 3.938 kB / 0.494 GB, free: 9.559 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001824/0.5976, allocations: 71.39 kB / 0.4941 GB, free: 9.477 MB / 426.7 MB Notification: Performance of pre-optimization done (n=7): time 2.435e-06/0.5976, allocations: 0 / 0.4941 GB, free: 9.477 MB / 426.7 MB Notification: Performance of matching and sorting (n=9): time 0.0006933/0.5983, allocations: 185.3 kB / 0.4943 GB, free: 9.289 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.392e-05/0.5984, allocations: 81.09 kB / 0.4943 GB, free: 9.191 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002249/0.5986, allocations: 151.8 kB / 0.4945 GB, free: 9.031 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.5987, allocations: 25.7 kB / 0.4945 GB, free: 9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.397e-05/0.5988, allocations: 158.6 kB / 0.4947 GB, free: 8.844 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.957e-05/0.5988, allocations: 31.61 kB / 0.4947 GB, free: 8.812 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.889e-06/0.5989, allocations: 4 kB / 0.4947 GB, free: 8.809 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.599, allocations: 318.8 kB / 0.495 GB, free: 8.488 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.183e-05/0.5991, allocations: 24 kB / 0.495 GB, free: 8.465 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.5992, allocations: 50.52 kB / 0.4951 GB, free: 8.406 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.44e-05/0.5993, allocations: 31.92 kB / 0.4951 GB, free: 8.375 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.5993, allocations: 0 / 0.4951 GB, free: 8.375 MB / 426.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000271/0.5996, allocations: 105.6 kB / 0.4952 GB, free: 8.266 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.5996, allocations: 4 kB / 0.4952 GB, free: 8.262 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.5997, allocations: 0 / 0.4952 GB, free: 8.262 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.5997, allocations: 192 / 0.4952 GB, free: 8.262 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.5999, allocations: 24.05 kB / 0.4952 GB, free: 8.238 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.465e-06/0.5999, allocations: 3.938 kB / 0.4952 GB, free: 8.234 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.87e-05/0.6, allocations: 8 kB / 0.4952 GB, free: 8.227 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/0.6, allocations: 4 kB / 0.4952 GB, free: 8.223 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 (11): * Single equations (assignments): 11 * 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.0001141/0.6002, allocations: 120.9 kB / 0.4954 GB, free: 8.098 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.366e-05/0.6002, allocations: 7.906 kB / 0.4954 GB, free: 8.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003932/0.6006, allocations: 134.1 kB / 0.4955 GB, free: 7.957 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.6006, allocations: 0 / 0.4955 GB, free: 7.957 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.6006, allocations: 4 kB / 0.4955 GB, free: 7.953 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.6007, allocations: 3.938 kB / 0.4955 GB, free: 7.949 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007294/0.6014, allocations: 435.2 kB / 0.4959 GB, free: 7.465 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.247e-06/0.6014, allocations: 0 / 0.4959 GB, free: 7.465 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.6015, allocations: 15.94 kB / 0.4959 GB, free: 7.449 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.6015, allocations: 0 / 0.4959 GB, free: 7.449 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.6016, allocations: 7.984 kB / 0.4959 GB, free: 7.441 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.151e-05/0.6016, allocations: 4 kB / 0.4959 GB, free: 7.438 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.6016, allocations: 4.031 kB / 0.4959 GB, free: 7.434 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000354/0.602, allocations: 226 kB / 0.4962 GB, free: 7.188 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.601e-05/0.6021, allocations: 92.91 kB / 0.4963 GB, free: 7.078 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.578e-05/0.6021, allocations: 15.98 kB / 0.4963 GB, free: 7.062 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.6022, allocations: 4 kB / 0.4963 GB, free: 7.059 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.022e-05/0.6023, allocations: 15.94 kB / 0.4963 GB, free: 7.043 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.6023, allocations: 4 kB / 0.4963 GB, free: 7.039 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001658/0.6025, allocations: 130.8 kB / 0.4964 GB, free: 6.914 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.875e-06/0.6025, allocations: 3.938 kB / 0.4964 GB, free: 6.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004128/0.603, allocations: 47.88 kB / 0.4965 GB, free: 6.863 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.002083/0.605, allocations: 1.218 MB / 0.4977 GB, free: 5.773 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002812/0.6054, allocations: 67.98 kB / 0.4977 GB, free: 5.707 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.6054, allocations: 0 / 0.4977 GB, free: 5.707 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.6055, allocations: 43.92 kB / 0.4978 GB, free: 5.664 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003915/0.6059, allocations: 33.97 kB / 0.4978 GB, free: 5.637 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008095/0.6067, allocations: 238.7 kB / 0.498 GB, free: 5.352 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/0.6071, allocations: 0.7045 MB / 0.4987 GB, free: 4.621 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.6072, allocations: 47.34 kB / 0.4988 GB, free: 4.574 MB / 426.7 MB Notification: Performance of SimCode: time 1.182e-06/0.6073, allocations: 0 / 0.4988 GB, free: 4.574 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_Test50CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50Functions.cpp:256:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp7.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_Test50CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50InitializeParameter.cpp:46:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp29; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50InitializeParameter.cpp:47: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", tmp29); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp10; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50Initialize.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", tmp10); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50Initialize.cpp:313:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp17; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50Initialize.cpp:314:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT2, tmp17); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50.cpp:807:24: error: use of undeclared identifier 'tmp5' _t_new_P_fileName_ = tmp5; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50FMU.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_Test50CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.o] Error 1