Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test50,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.597/2.597, allocations: 235 MB / 247.6 MB, free: 14.55 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.832e-05/4.84e-05, allocations: 8 kB / 305 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4389/0.439, allocations: 54.86 MB / 359.9 MB, free: 2.617 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1556/0.5946, allocations: 82.28 MB / 442.1 MB, free: 14.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/0.595, allocations: 73.17 kB / 442.2 MB, free: 14.66 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.02354/0.6186, allocations: 5.169 MB / 447.4 MB, free: 9.523 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.31e-06/0.6186, allocations: 4 kB / 447.4 MB, free: 9.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.6186, allocations: 11.88 kB / 447.4 MB, free: 9.508 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006314/0.6193, allocations: 453.5 kB / 447.8 MB, free: 9.008 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.6193, allocations: 8.031 kB / 447.9 MB, free: 9 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.112e-05/0.6194, allocations: 38.56 kB / 447.9 MB, free: 8.953 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.142e-05/0.6195, allocations: 7.906 kB / 447.9 MB, free: 8.945 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000392/0.6199, allocations: 208.8 kB / 448.1 MB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.6199, allocations: 4 kB / 448.1 MB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.328e-05/0.6199, allocations: 11.95 kB / 448.1 MB, free: 8.688 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.6202, allocations: 75.38 kB / 448.2 MB, free: 8.602 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.6202, allocations: 4 kB / 448.2 MB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.6202, allocations: 3.984 kB / 448.2 MB, free: 8.594 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.6202, allocations: 0 / 448.2 MB, free: 8.594 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001296/0.6204, allocations: 31.98 kB / 448.2 MB, free: 8.562 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005559/0.621, allocations: 320.7 kB / 448.5 MB, free: 8.199 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002342/0.6212, allocations: 74.67 kB / 448.6 MB, free: 8.117 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.085e-05/0.6213, allocations: 20.98 kB / 448.6 MB, free: 8.094 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.6213, allocations: 8 kB / 448.6 MB, free: 8.086 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001931/0.6215, allocations: 75.39 kB / 448.7 MB, free: 8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 2.475e-06/0.6216, allocations: 0 / 448.7 MB, free: 8 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0007296/0.6223, allocations: 185.2 kB / 448.9 MB, free: 7.812 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.602e-05/0.6224, allocations: 81.11 kB / 449 MB, free: 7.715 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.6226, allocations: 147.9 kB / 449.1 MB, free: 7.562 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.6227, allocations: 33.69 kB / 449.2 MB, free: 7.523 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.281e-05/0.6228, allocations: 163.3 kB / 449.3 MB, free: 7.363 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.99e-05/0.6228, allocations: 19.72 kB / 449.3 MB, free: 7.344 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.068e-05/0.6228, allocations: 0 / 449.3 MB, free: 7.344 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.623, allocations: 326.8 kB / 449.7 MB, free: 7.016 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.6231, allocations: 36 kB / 449.7 MB, free: 6.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.6232, allocations: 59.55 kB / 449.7 MB, free: 6.914 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001553/0.6234, allocations: 73.69 kB / 449.8 MB, free: 6.836 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.6234, allocations: 0 / 449.8 MB, free: 6.836 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004288/0.6239, allocations: 167.8 kB / 450 MB, free: 6.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.656e-05/0.6239, allocations: 37.7 kB / 450 MB, free: 6.617 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.624, allocations: 3.984 kB / 450 MB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.624, allocations: 4.062 kB / 450 MB, free: 6.609 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.6242, allocations: 19.98 kB / 450 MB, free: 6.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.6242, allocations: 4 kB / 450.1 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.6243, allocations: 5.031 kB / 450.1 MB, free: 6.582 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.519e-05/0.6244, allocations: 7.984 kB / 450.1 MB, free: 6.574 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 (12): * Single equations (assignments): 11 * 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.0001291/0.6245, allocations: 120.8 kB / 450.2 MB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.58e-05/0.6246, allocations: 7.906 kB / 450.2 MB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004395/0.625, allocations: 140.1 kB / 450.3 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.6251, allocations: 8 kB / 450.3 MB, free: 6.293 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.6251, allocations: 0 / 450.3 MB, free: 6.293 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/0.6251, allocations: 3.984 kB / 450.3 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008204/0.6259, allocations: 432.8 kB / 450.8 MB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.6259, allocations: 0 / 450.8 MB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.6261, allocations: 15.94 kB / 450.8 MB, free: 5.793 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.6261, allocations: 0 / 450.8 MB, free: 5.793 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.6261, allocations: 8 kB / 450.8 MB, free: 5.785 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.6261, allocations: 0 / 450.8 MB, free: 5.785 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.6262, allocations: 4.031 kB / 450.8 MB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003837/0.6265, allocations: 237.9 kB / 451 MB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.6267, allocations: 100.9 kB / 451.1 MB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.565e-05/0.6267, allocations: 7.984 kB / 451.1 MB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.6269, allocations: 4 kB / 451.1 MB, free: 5.395 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.571e-05/0.627, allocations: 16.86 kB / 451.1 MB, free: 5.379 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.627, allocations: 4 kB / 451.2 MB, free: 5.375 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001499/0.6271, allocations: 122 kB / 451.3 MB, free: 5.258 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6272, allocations: 0 / 451.3 MB, free: 5.258 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004646/0.6276, allocations: 55.92 kB / 451.3 MB, free: 5.203 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 (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.00216/0.6298, allocations: 1.235 MB / 452.6 MB, free: 4.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004323/0.6303, allocations: 159.3 kB / 452.7 MB, free: 3.852 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/0.6303, allocations: 0 / 452.7 MB, free: 3.852 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001189/0.6304, allocations: 43.94 kB / 452.8 MB, free: 3.809 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003818/0.6308, allocations: 24.06 kB / 452.8 MB, free: 3.785 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008917/0.6317, allocations: 246.8 kB / 453 MB, free: 3.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.6321, allocations: 0.7004 MB / 453.7 MB, free: 2.773 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.6323, allocations: 39.42 kB / 453.8 MB, free: 2.738 MB / 378.7 MB Notification: Performance of SimCode: time 9.31e-07/0.6323, allocations: 0 / 453.8 MB, free: 2.738 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_Test50CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50InitializeParameter.cpp:44:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp29; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50InitializeParameter.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 3.2.2/Resources/Data/Tables/test.txt", tmp29); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp10; ^ ./OMCppModelicaTest_3_2_2_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 3.2.2/Resources/Data/Tables/test.txt", tmp10); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50Initialize.cpp:313: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_Test50Initialize.cpp:316:13: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp19 = 1.797693134862316e+308; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50Initialize.cpp:375:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp20; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50Initialize.cpp:376:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT2, tmp20); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50.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_Test50.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_Test50.cpp:807:24: error: use of undeclared identifier 'tmp5' _t_new_P_fileName_ = tmp5; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_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) { ^ 5 warnings and 7 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.o] Error 1