Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test55,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.521/2.521, allocations: 270 MB / 282.6 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.079e-05/4.077e-05, allocations: 8 kB / 347.1 MB, free: 3.102 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4612/0.4613, allocations: 61.87 MB / 408.9 MB, free: 10.76 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2229/0.6843, allocations: 89.5 MB / 498.4 MB, free: 1.133 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003143/0.6847, allocations: 75.95 kB / 498.5 MB, free: 1.059 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02758/0.7123, allocations: 5.925 MB / 0.4926 GB, free: 11.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.7123, allocations: 0 / 0.4926 GB, free: 11.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.234e-05/0.7124, allocations: 7.984 kB / 0.4926 GB, free: 11.12 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.0005936/0.713, allocations: 386.3 kB / 0.493 GB, free: 10.7 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.713, allocations: 8.031 kB / 0.493 GB, free: 10.69 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.478e-05/0.7131, allocations: 42.55 kB / 0.493 GB, free: 10.64 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.529e-05/0.7132, allocations: 11.89 kB / 0.493 GB, free: 10.63 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003888/0.7136, allocations: 209.9 kB / 0.4932 GB, free: 10.39 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.7136, allocations: 8 kB / 0.4933 GB, free: 10.38 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.343e-05/0.7137, allocations: 0 / 0.4933 GB, free: 10.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.7138, allocations: 75.33 kB / 0.4933 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.7139, allocations: 0 / 0.4933 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.7139, allocations: 0 / 0.4933 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.7139, allocations: 7.938 kB / 0.4933 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.503e-05/0.714, allocations: 19.98 kB / 0.4933 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004887/0.7145, allocations: 288.8 kB / 0.4936 GB, free: 9.934 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001725/0.7147, allocations: 50.69 kB / 0.4937 GB, free: 9.875 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.339e-05/0.7148, allocations: 24.97 kB / 0.4937 GB, free: 9.848 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.77e-05/0.7148, allocations: 0 / 0.4937 GB, free: 9.848 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001761/0.715, allocations: 63.41 kB / 0.4938 GB, free: 9.773 MB / 426.7 MB Notification: Performance of pre-optimization done (n=6): time 2.405e-06/0.715, allocations: 0 / 0.4938 GB, free: 9.773 MB / 426.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006617/0.7157, allocations: 149.3 kB / 0.4939 GB, free: 9.621 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/0.7158, allocations: 81.11 kB / 0.494 GB, free: 9.523 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.716, allocations: 144.7 kB / 0.4941 GB, free: 9.375 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.716, allocations: 29.7 kB / 0.4941 GB, free: 9.34 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.494e-05/0.7161, allocations: 166.5 kB / 0.4943 GB, free: 9.176 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.7162, allocations: 23.66 kB / 0.4943 GB, free: 9.152 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.338e-06/0.7162, allocations: 4 kB / 0.4943 GB, free: 9.148 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.7163, allocations: 314.8 kB / 0.4946 GB, free: 8.832 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.784e-05/0.7164, allocations: 23.98 kB / 0.4947 GB, free: 8.809 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.773e-05/0.7165, allocations: 38.52 kB / 0.4947 GB, free: 8.762 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.366e-05/0.7166, allocations: 27.97 kB / 0.4947 GB, free: 8.734 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.7166, allocations: 0 / 0.4947 GB, free: 8.734 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002428/0.7169, allocations: 89.72 kB / 0.4948 GB, free: 8.641 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.7169, allocations: 4 kB / 0.4948 GB, free: 8.637 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.7169, allocations: 0 / 0.4948 GB, free: 8.637 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.717, allocations: 4 kB / 0.4948 GB, free: 8.633 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.7171, allocations: 19.92 kB / 0.4948 GB, free: 8.613 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.7172, allocations: 3.953 kB / 0.4948 GB, free: 8.609 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.908e-05/0.7173, allocations: 4 kB / 0.4948 GB, free: 8.605 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.7173, allocations: 4 kB / 0.4948 GB, free: 8.602 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.0001033/0.7174, allocations: 116.2 kB / 0.4949 GB, free: 8.484 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.35e-05/0.7175, allocations: 11.89 kB / 0.495 GB, free: 8.473 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000331/0.7178, allocations: 106.4 kB / 0.4951 GB, free: 8.363 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.7178, allocations: 288 / 0.4951 GB, free: 8.363 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-05/0.7178, allocations: 8 kB / 0.4951 GB, free: 8.355 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.7179, allocations: 11.88 kB / 0.4951 GB, free: 8.344 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006284/0.7185, allocations: 399.2 kB / 0.4955 GB, free: 7.895 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.7185, allocations: 32 / 0.4955 GB, free: 7.895 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.536e-05/0.7186, allocations: 15.98 kB / 0.4955 GB, free: 7.879 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.976e-06/0.7186, allocations: 4 kB / 0.4955 GB, free: 7.875 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.7187, allocations: 4 kB / 0.4955 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.7187, allocations: 4.188 kB / 0.4955 GB, free: 7.867 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.7187, allocations: 0 / 0.4955 GB, free: 7.867 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003202/0.719, allocations: 217.9 kB / 0.4957 GB, free: 7.629 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.418e-05/0.7191, allocations: 93 kB / 0.4958 GB, free: 7.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.04e-05/0.7192, allocations: 3.953 kB / 0.4958 GB, free: 7.516 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.7193, allocations: 8 kB / 0.4958 GB, free: 7.508 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.224e-05/0.7194, allocations: 11.97 kB / 0.4958 GB, free: 7.496 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.7194, allocations: 4 kB / 0.4958 GB, free: 7.492 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001687/0.7196, allocations: 125.8 kB / 0.4959 GB, free: 7.371 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.22e-07/0.7196, allocations: 0 / 0.4959 GB, free: 7.371 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004252/0.72, allocations: 43.92 kB / 0.496 GB, free: 7.328 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.002059/0.7221, allocations: 1.209 MB / 0.4972 GB, free: 6.246 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002681/0.7224, allocations: 63.91 kB / 0.4972 GB, free: 6.184 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.7224, allocations: 0 / 0.4972 GB, free: 6.184 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 9.407e-05/0.7225, allocations: 28 kB / 0.4972 GB, free: 6.156 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003985/0.723, allocations: 24.09 kB / 0.4973 GB, free: 6.133 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008337/0.7238, allocations: 230.3 kB / 0.4975 GB, free: 5.859 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.7241, allocations: 0.7004 MB / 0.4982 GB, free: 5.133 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.7243, allocations: 31.42 kB / 0.4982 GB, free: 5.102 MB / 426.7 MB Notification: Performance of SimCode: time 1.212e-06/0.7243, allocations: 3.938 kB / 0.4982 GB, free: 5.098 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_Test55CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Functions.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_Test55CalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55InitializeParameter.cpp:44:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55InitializeParameter.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_v4.mat", tmp27); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.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_v4.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.cpp:300:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.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_Test55CalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55.cpp:785:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55FMU.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_Test55CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.o] Error 1