Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test57.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) 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.257/2.257, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004447/0.0004447, allocations: 12 kB / 314.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3334, allocations: 54.87 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1462/0.4797, allocations: 82.36 MB / 451.7 MB, free: 8.141 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/0.48, allocations: 79.89 kB / 451.8 MB, free: 8.062 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.02201/0.502, allocations: 5.16 MB / 457 MB, free: 2.891 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.5021, allocations: 4 kB / 457 MB, free: 2.887 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.5021, allocations: 0 / 457 MB, free: 2.887 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.0006873/0.5028, allocations: 481.1 kB / 457.4 MB, free: 2.359 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.5029, allocations: 11.97 kB / 457.4 MB, free: 2.348 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.106e-05/0.5029, allocations: 38.56 kB / 457.5 MB, free: 2.301 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.824e-05/0.503, allocations: 7.906 kB / 457.5 MB, free: 2.293 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003375/0.5033, allocations: 193 kB / 457.7 MB, free: 2.066 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.5034, allocations: 8 kB / 457.7 MB, free: 2.059 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/0.5034, allocations: 11.94 kB / 457.7 MB, free: 2.047 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000208/0.5036, allocations: 64.23 kB / 457.8 MB, free: 1.973 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.5037, allocations: 4 kB / 457.8 MB, free: 1.969 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/0.5037, allocations: 7.938 kB / 457.8 MB, free: 1.961 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.5037, allocations: 0 / 457.8 MB, free: 1.961 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001151/0.5038, allocations: 27.92 kB / 457.8 MB, free: 1.934 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004594/0.5043, allocations: 292.9 kB / 458.1 MB, free: 1.598 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002485/0.5046, allocations: 62.67 kB / 458.1 MB, free: 1.527 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.5046, allocations: 7.938 kB / 458.2 MB, free: 1.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001983/0.5048, allocations: 67.47 kB / 458.2 MB, free: 1.441 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 2.004e-06/0.5048, allocations: 0 / 458.2 MB, free: 1.441 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007841/0.5056, allocations: 181.3 kB / 458.4 MB, free: 1.258 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.5057, allocations: 81.11 kB / 458.5 MB, free: 1.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.5059, allocations: 137.3 kB / 458.6 MB, free: 1.016 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.5059, allocations: 29.7 kB / 458.6 MB, free: 0.9805 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.373e-05/0.506, allocations: 158.5 kB / 458.8 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.905e-05/0.5061, allocations: 27.59 kB / 458.8 MB, free: 0.7969 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.136e-05/0.5061, allocations: 4 kB / 458.8 MB, free: 0.793 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.5062, allocations: 318.8 kB / 459.1 MB, free: 484 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001247/0.5064, allocations: 35.98 kB / 459.2 MB, free: 448 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.5065, allocations: 54.55 kB / 459.2 MB, free: 384 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.5067, allocations: 61.7 kB / 459.3 MB, free: 316 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.5067, allocations: 0 / 459.3 MB, free: 316 kB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004272/0.5072, allocations: 163.3 kB / 459.4 MB, free: 140 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.885e-05/0.5072, allocations: 37.69 kB / 459.5 MB, free: 96 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.5072, allocations: 0 / 459.5 MB, free: 96 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.5073, allocations: 4.062 kB / 459.5 MB, free: 92 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.5074, allocations: 24.3 kB / 459.5 MB, free: 68 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.5074, allocations: 0 / 459.5 MB, free: 68 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.926e-05/0.5075, allocations: 12 kB / 459.5 MB, free: 56 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.863e-05/0.5076, allocations: 4 kB / 459.5 MB, free: 52 kB / 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 () * Number of clocked 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.0001489/0.5077, allocations: 119.1 kB / 459.6 MB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.625e-05/0.5078, allocations: 15.84 kB / 459.7 MB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003845/0.5082, allocations: 130.2 kB / 459.8 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.5082, allocations: 0 / 459.8 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.5082, allocations: 0 / 459.8 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.5082, allocations: 0 / 459.8 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006603/0.5089, allocations: 407.2 kB / 460.2 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.5089, allocations: 0 / 460.2 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.813e-05/0.509, allocations: 15.98 kB / 460.2 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.509, allocations: 0 / 460.2 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.509, allocations: 0 / 460.2 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.747e-06/0.5091, allocations: 8.031 kB / 460.2 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5091, allocations: 3.938 kB / 460.2 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003726/0.5094, allocations: 218 kB / 460.4 MB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.959e-05/0.5095, allocations: 101.2 kB / 460.5 MB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.518e-05/0.5096, allocations: 4 kB / 460.5 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.5097, allocations: 4 kB / 460.5 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.552e-05/0.5098, allocations: 23.89 kB / 460.6 MB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.5098, allocations: 4 kB / 460.6 MB, free: 14.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001296/0.51, allocations: 122 kB / 460.7 MB, free: 14.79 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.51, allocations: 0 / 460.7 MB, free: 14.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004165/0.5104, allocations: 40 kB / 460.7 MB, free: 14.75 MB / 394.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) * Number of clocked states: 0 () * 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.002159/0.5126, allocations: 1.259 MB / 462 MB, free: 13.54 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004184/0.513, allocations: 163.3 kB / 462.1 MB, free: 13.36 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.513, allocations: 0 / 462.1 MB, free: 13.36 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.5132, allocations: 35.92 kB / 462.2 MB, free: 13.33 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.5135, allocations: 32.09 kB / 462.2 MB, free: 13.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.5146, allocations: 0.6184 MB / 462.8 MB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.515, allocations: 0.7004 MB / 463.5 MB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.5151, allocations: 31.42 kB / 463.6 MB, free: 11.85 MB / 394.7 MB Notification: Performance of SimCode: time 1.233e-06/0.5151, allocations: 0 / 463.6 MB, free: 11.85 MB / 394.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