Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test57,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.758/2.758, allocations: 270 MB / 282.6 MB, free: 1.812 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.772e-05/3.779e-05, allocations: 4 kB / 347.1 MB, free: 3.102 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4282/0.4283, allocations: 61.88 MB / 408.9 MB, free: 10.64 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2227/0.6511, allocations: 89.5 MB / 498.4 MB, free: 1.016 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/0.6514, allocations: 75.95 kB / 498.5 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02635/0.6778, allocations: 5.913 MB / 0.4926 GB, free: 11.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6778, allocations: 0 / 0.4926 GB, free: 11.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.206e-05/0.6779, allocations: 8 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.0005524/0.6784, allocations: 394.3 kB / 0.493 GB, free: 10.58 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.6785, allocations: 8.031 kB / 0.493 GB, free: 10.57 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.841e-05/0.6786, allocations: 34.56 kB / 0.493 GB, free: 10.53 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.192e-05/0.6786, allocations: 7.906 kB / 0.493 GB, free: 10.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003676/0.679, allocations: 210.8 kB / 0.4932 GB, free: 10.28 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.679, allocations: 4 kB / 0.4932 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.393e-05/0.6791, allocations: 4 kB / 0.4932 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001691/0.6792, allocations: 75.39 kB / 0.4933 GB, free: 10.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.6793, allocations: 4 kB / 0.4933 GB, free: 10.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.6793, allocations: 0 / 0.4933 GB, free: 10.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.6793, allocations: 0 / 0.4933 GB, free: 10.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.926e-05/0.6794, allocations: 19.98 kB / 0.4933 GB, free: 10.16 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004422/0.6799, allocations: 288.8 kB / 0.4936 GB, free: 9.828 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001639/0.68, allocations: 58.69 kB / 0.4937 GB, free: 9.762 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.078e-05/0.6801, allocations: 16.98 kB / 0.4937 GB, free: 9.742 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.6801, allocations: 0 / 0.4937 GB, free: 9.742 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000164/0.6803, allocations: 67.39 kB / 0.4938 GB, free: 9.664 MB / 426.7 MB Notification: Performance of pre-optimization done (n=6): time 2.114e-06/0.6803, allocations: 3.938 kB / 0.4938 GB, free: 9.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006/0.6809, allocations: 157.3 kB / 0.4939 GB, free: 9.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.75e-05/0.681, allocations: 81.11 kB / 0.494 GB, free: 9.402 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001995/0.6812, allocations: 144.7 kB / 0.4941 GB, free: 9.254 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.6813, allocations: 29.7 kB / 0.4941 GB, free: 9.219 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.39e-05/0.6814, allocations: 162.5 kB / 0.4943 GB, free: 9.059 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.05e-05/0.6814, allocations: 27.64 kB / 0.4943 GB, free: 9.031 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-06/0.6814, allocations: 0 / 0.4943 GB, free: 9.031 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.6815, allocations: 314.8 kB / 0.4946 GB, free: 8.715 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.961e-05/0.6816, allocations: 20 kB / 0.4946 GB, free: 8.695 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.147e-05/0.6817, allocations: 50.5 kB / 0.4947 GB, free: 8.637 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.333e-05/0.6818, allocations: 19.98 kB / 0.4947 GB, free: 8.617 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.6818, allocations: 0 / 0.4947 GB, free: 8.617 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002225/0.6821, allocations: 85.67 kB / 0.4948 GB, free: 8.527 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.6821, allocations: 9.562 kB / 0.4948 GB, free: 8.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.6821, allocations: 0 / 0.4948 GB, free: 8.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.6821, allocations: 0 / 0.4948 GB, free: 8.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.6823, allocations: 23.92 kB / 0.4948 GB, free: 8.496 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.6823, allocations: 12.02 kB / 0.4948 GB, free: 8.484 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.064e-05/0.6824, allocations: 0 / 0.4948 GB, free: 8.484 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.6825, allocations: 4 kB / 0.4948 GB, free: 8.48 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.323e-05/0.6826, allocations: 113.5 kB / 0.495 GB, free: 8.367 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.941e-05/0.6826, allocations: 7.906 kB / 0.495 GB, free: 8.359 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003137/0.6829, allocations: 114.2 kB / 0.4951 GB, free: 8.242 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.6829, allocations: 0 / 0.4951 GB, free: 8.242 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.683, allocations: 0 / 0.4951 GB, free: 8.242 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.683, allocations: 7.953 kB / 0.4951 GB, free: 8.234 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005859/0.6836, allocations: 395.2 kB / 0.4955 GB, free: 7.789 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.6836, allocations: 4 kB / 0.4955 GB, free: 7.785 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.713e-05/0.6837, allocations: 12.17 kB / 0.4955 GB, free: 7.773 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.6837, allocations: 0 / 0.4955 GB, free: 7.773 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.6837, allocations: 8.219 kB / 0.4955 GB, free: 7.766 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/0.6837, allocations: 7.953 kB / 0.4955 GB, free: 7.758 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.6838, allocations: 0 / 0.4955 GB, free: 7.758 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003075/0.6841, allocations: 225.9 kB / 0.4957 GB, free: 7.512 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.695e-05/0.6842, allocations: 89 kB / 0.4958 GB, free: 7.406 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.634e-05/0.6842, allocations: 7.953 kB / 0.4958 GB, free: 7.398 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.6843, allocations: 4 kB / 0.4958 GB, free: 7.395 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.929e-05/0.6844, allocations: 11.98 kB / 0.4958 GB, free: 7.383 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.6844, allocations: 3.938 kB / 0.4958 GB, free: 7.379 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001373/0.6846, allocations: 119.3 kB / 0.4959 GB, free: 7.262 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6846, allocations: 0 / 0.4959 GB, free: 7.262 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004092/0.685, allocations: 43.92 kB / 0.496 GB, free: 7.219 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.002048/0.6871, allocations: 1.222 MB / 0.4972 GB, free: 6.129 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002527/0.6874, allocations: 67.86 kB / 0.4972 GB, free: 6.062 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.6874, allocations: 0 / 0.4972 GB, free: 6.062 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 8.956e-05/0.6875, allocations: 24 kB / 0.4972 GB, free: 6.039 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003974/0.6879, allocations: 23.98 kB / 0.4973 GB, free: 6.016 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007391/0.6886, allocations: 226.3 kB / 0.4975 GB, free: 5.746 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003007/0.689, allocations: 0.7045 MB / 0.4982 GB, free: 5.016 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.6891, allocations: 31.42 kB / 0.4982 GB, free: 4.984 MB / 426.7 MB Notification: Performance of SimCode: time 9.02e-07/0.6891, allocations: 0 / 0.4982 GB, free: 4.984 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_Test57CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Functions.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_Test57CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57InitializeParameter.cpp:44:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57InitializeParameter.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_v7.mat", tmp27); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.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_v7.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:300:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.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_Test57CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57.cpp:785:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57FMU.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_Test57CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.o] Error 1