Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test59,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test59",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.722/2.722, allocations: 270 MB / 282.7 MB, free: 1.828 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.528e-05/3.537e-05, allocations: 4 kB / 347.1 MB, free: 3.129 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4739/0.474, allocations: 61.87 MB / 408.9 MB, free: 10.67 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2171/0.6911, allocations: 89.51 MB / 498.4 MB, free: 1.039 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.6915, allocations: 71.97 kB / 498.5 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02691/0.7184, allocations: 5.925 MB / 0.4926 GB, free: 11.04 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.7185, allocations: 4 kB / 0.4926 GB, free: 11.03 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.791e-05/0.7185, 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.0005666/0.7191, allocations: 386.3 kB / 0.493 GB, free: 10.6 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.7192, allocations: 8.031 kB / 0.493 GB, free: 10.59 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.2e-05/0.7192, allocations: 38.56 kB / 0.493 GB, free: 10.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.019e-05/0.7193, allocations: 7.906 kB / 0.493 GB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004058/0.7197, allocations: 217.8 kB / 0.4932 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.7197, allocations: 3.984 kB / 0.4932 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.575e-05/0.7198, allocations: 8 kB / 0.4933 GB, free: 10.28 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001791/0.72, allocations: 67.39 kB / 0.4933 GB, free: 10.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.72, allocations: 3.938 kB / 0.4933 GB, free: 10.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.72, allocations: 4 kB / 0.4933 GB, free: 10.19 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.72, allocations: 0 / 0.4933 GB, free: 10.19 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.643e-05/0.7201, allocations: 27.92 kB / 0.4934 GB, free: 10.16 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004553/0.7206, allocations: 284.9 kB / 0.4936 GB, free: 9.836 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.7208, allocations: 50.69 kB / 0.4937 GB, free: 9.777 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.874e-05/0.7209, allocations: 16.98 kB / 0.4937 GB, free: 9.758 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.681e-05/0.7209, allocations: 0 / 0.4937 GB, free: 9.758 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000174/0.7211, allocations: 71.33 kB / 0.4938 GB, free: 9.676 MB / 426.7 MB Notification: Performance of pre-optimization done (n=6): time 2.225e-06/0.7211, allocations: 0 / 0.4938 GB, free: 9.676 MB / 426.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006107/0.7217, allocations: 145.4 kB / 0.4939 GB, free: 9.527 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.319e-05/0.7218, allocations: 85.09 kB / 0.494 GB, free: 9.426 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/0.722, allocations: 148.7 kB / 0.4941 GB, free: 9.273 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.722, allocations: 25.7 kB / 0.4941 GB, free: 9.242 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.749e-05/0.7221, allocations: 162.5 kB / 0.4943 GB, free: 9.082 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.164e-05/0.7222, allocations: 31.62 kB / 0.4943 GB, free: 9.051 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-06/0.7222, allocations: 4 kB / 0.4943 GB, free: 9.047 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.7223, allocations: 314.8 kB / 0.4946 GB, free: 8.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.262e-05/0.7224, allocations: 20 kB / 0.4947 GB, free: 8.711 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.412e-05/0.7225, allocations: 38.56 kB / 0.4947 GB, free: 8.664 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.385e-05/0.7226, allocations: 24 kB / 0.4947 GB, free: 8.641 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.7226, allocations: 0 / 0.4947 GB, free: 8.641 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002313/0.7228, allocations: 89.61 kB / 0.4948 GB, free: 8.547 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.7229, allocations: 9.562 kB / 0.4948 GB, free: 8.539 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.7229, allocations: 0 / 0.4948 GB, free: 8.539 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.7229, allocations: 4.062 kB / 0.4948 GB, free: 8.535 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.7231, allocations: 12 kB / 0.4948 GB, free: 8.523 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.7231, allocations: 7.953 kB / 0.4948 GB, free: 8.516 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.7232, allocations: 8.172 kB / 0.4948 GB, free: 8.508 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/0.7233, allocations: 4 kB / 0.4948 GB, free: 8.504 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.0001035/0.7234, allocations: 112.2 kB / 0.4949 GB, free: 8.391 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.131e-05/0.7234, allocations: 11.91 kB / 0.495 GB, free: 8.379 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003584/0.7238, allocations: 114.4 kB / 0.4951 GB, free: 8.262 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.7238, allocations: 8 kB / 0.4951 GB, free: 8.254 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.7238, allocations: 0 / 0.4951 GB, free: 8.254 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.7238, allocations: 3.953 kB / 0.4951 GB, free: 8.25 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006112/0.7245, allocations: 403.3 kB / 0.4955 GB, free: 7.797 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.7245, allocations: 0 / 0.4955 GB, free: 7.797 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.466e-05/0.7246, allocations: 15.94 kB / 0.4955 GB, free: 7.781 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.7246, allocations: 0 / 0.4955 GB, free: 7.781 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.7246, allocations: 3.984 kB / 0.4955 GB, free: 7.777 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.175e-06/0.7246, allocations: 12.06 kB / 0.4955 GB, free: 7.766 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.7247, allocations: 3.984 kB / 0.4955 GB, free: 7.762 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000311/0.725, allocations: 210 kB / 0.4957 GB, free: 7.531 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.233e-05/0.7251, allocations: 85.02 kB / 0.4958 GB, free: 7.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.346e-05/0.7251, allocations: 15.94 kB / 0.4958 GB, free: 7.414 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.7253, allocations: 0 / 0.4958 GB, free: 7.414 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.571e-05/0.7253, allocations: 8 kB / 0.4958 GB, free: 7.406 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.7253, allocations: 7.984 kB / 0.4958 GB, free: 7.398 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001536/0.7255, allocations: 121.8 kB / 0.4959 GB, free: 7.281 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7255, allocations: 0 / 0.4959 GB, free: 7.281 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004187/0.7259, allocations: 39.94 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.002056/0.728, allocations: 1.228 MB / 0.4972 GB, free: 6.145 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002657/0.7283, allocations: 55.94 kB / 0.4972 GB, free: 6.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.7283, allocations: 0 / 0.4972 GB, free: 6.09 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 9.877e-05/0.7284, allocations: 35.92 kB / 0.4973 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.0004027/0.7289, allocations: 19.98 kB / 0.4973 GB, free: 6.035 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007583/0.7296, allocations: 218.4 kB / 0.4975 GB, free: 5.773 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.73, allocations: 0.7045 MB / 0.4982 GB, free: 5.043 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.7301, allocations: 35.41 kB / 0.4982 GB, free: 5.008 MB / 426.7 MB Notification: Performance of SimCode: time 4.418e-06/0.7301, allocations: 0 / 0.4982 GB, free: 5.008 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_Test59CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Functions.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_Test59CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test59InitializeParameter.cpp:44:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test59InitializeParameter.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_Test59CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Initialize.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_Test59Initialize.cpp:300:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Initialize.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_Test59CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test59.cpp:785:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test59FMU.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_Test59CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.o] Error 1