Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test57,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.441/2.441, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.925e-05/4.933e-05, allocations: 12.94 kB / 305 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5232/0.5233, allocations: 54.86 MB / 359.9 MB, free: 2.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2267/0.75, allocations: 82.26 MB / 442.1 MB, free: 14.62 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/0.7504, allocations: 75.95 kB / 442.2 MB, free: 14.55 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.02256/0.773, allocations: 4.925 MB / 447.1 MB, free: 9.656 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.773, allocations: 0 / 447.1 MB, free: 9.656 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.773, allocations: 0 / 447.1 MB, free: 9.656 MB / 378.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.0006183/0.7737, allocations: 449.6 kB / 447.6 MB, free: 9.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.7737, allocations: 12.03 kB / 447.6 MB, free: 9.148 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.178e-05/0.7738, allocations: 34.56 kB / 447.6 MB, free: 9.105 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.678e-05/0.7738, allocations: 7.906 kB / 447.6 MB, free: 9.098 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003484/0.7742, allocations: 199 kB / 447.8 MB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.7742, allocations: 4 kB / 447.8 MB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.027e-05/0.7743, allocations: 11.91 kB / 447.8 MB, free: 8.848 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.7745, allocations: 67.39 kB / 447.9 MB, free: 8.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.7745, allocations: 3.953 kB / 447.9 MB, free: 8.766 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.7745, allocations: 0 / 447.9 MB, free: 8.766 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.7745, allocations: 0 / 447.9 MB, free: 8.766 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.465e-05/0.7746, allocations: 23.92 kB / 447.9 MB, free: 8.742 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005106/0.7751, allocations: 296.9 kB / 448.2 MB, free: 8.402 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001712/0.7753, allocations: 54.67 kB / 448.3 MB, free: 8.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.229e-05/0.7754, allocations: 25.88 kB / 448.3 MB, free: 8.312 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.7754, allocations: 0 / 448.3 MB, free: 8.312 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001772/0.7756, allocations: 72.2 kB / 448.4 MB, free: 8.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 2.184e-06/0.7756, allocations: 4 kB / 448.4 MB, free: 8.227 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006122/0.7763, allocations: 154.3 kB / 448.5 MB, free: 8.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/0.7763, allocations: 81.11 kB / 448.6 MB, free: 7.973 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.7765, allocations: 131.3 kB / 448.7 MB, free: 7.836 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.7766, allocations: 33.7 kB / 448.8 MB, free: 7.797 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.044e-05/0.7767, allocations: 170.4 kB / 448.9 MB, free: 7.629 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.586e-05/0.7767, allocations: 19.66 kB / 449 MB, free: 7.609 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.2e-05/0.7768, allocations: 4.938 kB / 449 MB, free: 7.605 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.7769, allocations: 326.8 kB / 449.3 MB, free: 7.277 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.182e-05/0.777, allocations: 28 kB / 449.3 MB, free: 7.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.7771, allocations: 56.53 kB / 449.4 MB, free: 7.188 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.7773, allocations: 65.64 kB / 449.4 MB, free: 7.117 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.7773, allocations: 0 / 449.4 MB, free: 7.117 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003555/0.7777, allocations: 151.3 kB / 449.6 MB, free: 6.957 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.826e-05/0.7777, allocations: 39.42 kB / 449.6 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.7777, allocations: 6.438 kB / 449.6 MB, free: 6.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.7778, allocations: 0.5625 kB / 449.6 MB, free: 6.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.7779, allocations: 15.98 kB / 449.6 MB, free: 6.895 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.778, allocations: 4 kB / 449.6 MB, free: 6.891 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.7781, allocations: 4 kB / 449.6 MB, free: 6.887 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.7781, allocations: 4 kB / 449.6 MB, free: 6.883 MB / 378.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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001056/0.7782, allocations: 117.4 kB / 449.8 MB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.95e-05/0.7783, allocations: 13.48 kB / 449.8 MB, free: 6.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003355/0.7786, allocations: 122.3 kB / 449.9 MB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.7786, allocations: 3.938 kB / 449.9 MB, free: 6.621 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.7786, allocations: 0 / 449.9 MB, free: 6.621 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.7787, allocations: 3.984 kB / 449.9 MB, free: 6.617 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006511/0.7793, allocations: 391.3 kB / 450.3 MB, free: 6.176 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.7793, allocations: 0 / 450.3 MB, free: 6.176 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.41e-05/0.7794, allocations: 11.94 kB / 450.3 MB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.737e-06/0.7795, allocations: 4 kB / 450.3 MB, free: 6.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.253e-05/0.7795, allocations: 8.031 kB / 450.3 MB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.7795, allocations: 0 / 450.3 MB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.7795, allocations: 4.922 kB / 450.3 MB, free: 6.148 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003256/0.7798, allocations: 217.9 kB / 450.5 MB, free: 5.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.78, allocations: 97.88 kB / 450.6 MB, free: 5.797 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.45e-05/0.78, allocations: 0 / 450.6 MB, free: 5.797 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.7802, allocations: 8.562 kB / 450.6 MB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.231e-05/0.7802, allocations: 7.984 kB / 450.6 MB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.902e-05/0.7802, allocations: 8 kB / 450.6 MB, free: 5.773 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001389/0.7804, allocations: 114.1 kB / 450.8 MB, free: 5.664 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.425e-06/0.7804, allocations: 0 / 450.8 MB, free: 5.664 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004583/0.7809, allocations: 55.86 kB / 450.8 MB, free: 5.609 MB / 378.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.002097/0.783, allocations: 1.206 MB / 452 MB, free: 4.453 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003955/0.7834, allocations: 151.3 kB / 452.2 MB, free: 4.293 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.7834, allocations: 0 / 452.2 MB, free: 4.293 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.7836, allocations: 39.98 kB / 452.2 MB, free: 4.254 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003699/0.7839, allocations: 23.88 kB / 452.2 MB, free: 4.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007915/0.7847, allocations: 215.1 kB / 452.4 MB, free: 3.973 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.7851, allocations: 0.7043 MB / 453.1 MB, free: 3.242 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.7853, allocations: 31.42 kB / 453.2 MB, free: 3.215 MB / 378.7 MB Notification: Performance of SimCode: time 5.22e-06/0.7853, allocations: 4.062 kB / 453.2 MB, free: 3.211 MB / 378.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"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57InitializeParameter.cpp:42:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57InitializeParameter.cpp:43:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/test_v7.mat", tmp27); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_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 3.2.2/Resources/Data/Tables/test_v7.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:301:39: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] if (_t_new_P_nextTimeEventScaled_ < 1.797693134862316e+308) { ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:304:13: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp17 = 1.797693134862316e+308; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:362:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp18; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:363:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT2, tmp18); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57.cpp:208:41: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] if (_t_new_P_nextTimeEventScaled_ < 1.797693134862316e+308) { ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57.cpp:211:14: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp1 = 1.797693134862316e+308; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57.cpp:785:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_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) { ^ 5 warnings and 7 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.o] Error 1