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.Test55.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.Test55,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.236/2.236, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000426/0.0004261, allocations: 20 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3595, allocations: 54.86 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1446/0.5042, allocations: 82.36 MB / 451.7 MB, free: 8.141 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/0.5045, allocations: 75.91 kB / 451.8 MB, free: 8.066 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.02272/0.5272, allocations: 5.17 MB / 457 MB, free: 2.887 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5273, allocations: 0 / 457 MB, free: 2.887 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.511e-05/0.5273, allocations: 4 kB / 457 MB, free: 2.883 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.0006863/0.528, allocations: 474.2 kB / 457.4 MB, free: 2.359 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.5281, allocations: 8.031 kB / 457.4 MB, free: 2.352 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.289e-05/0.5281, allocations: 38.56 kB / 457.5 MB, free: 2.305 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.787e-05/0.5282, allocations: 7.906 kB / 457.5 MB, free: 2.297 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003661/0.5286, allocations: 198.9 kB / 457.7 MB, free: 2.062 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.5286, allocations: 4 kB / 457.7 MB, free: 2.059 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.296e-05/0.5286, allocations: 11.92 kB / 457.7 MB, free: 2.047 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002187/0.5289, allocations: 76.17 kB / 457.8 MB, free: 1.961 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.5289, allocations: 0 / 457.8 MB, free: 1.961 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.5289, allocations: 3.953 kB / 457.8 MB, free: 1.957 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.5289, allocations: 0 / 457.8 MB, free: 1.957 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001171/0.5291, allocations: 27.97 kB / 457.8 MB, free: 1.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004912/0.5296, allocations: 288.9 kB / 458.1 MB, free: 1.598 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000256/0.5298, allocations: 70.61 kB / 458.2 MB, free: 1.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.646e-05/0.5299, allocations: 0 / 458.2 MB, free: 1.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000195/0.5301, allocations: 67.47 kB / 458.2 MB, free: 1.441 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 2.044e-06/0.5301, allocations: 7.938 kB / 458.2 MB, free: 1.434 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0008238/0.5309, allocations: 177.3 kB / 458.4 MB, free: 1.254 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.934e-05/0.531, allocations: 81.11 kB / 458.5 MB, free: 1.156 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.5312, allocations: 129.3 kB / 458.6 MB, free: 1.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.086e-05/0.5313, allocations: 37.69 kB / 458.6 MB, free: 0.9766 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.569e-05/0.5314, allocations: 158.5 kB / 458.8 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.937e-05/0.5314, allocations: 27.64 kB / 458.8 MB, free: 0.793 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.089e-05/0.5314, allocations: 4 kB / 458.8 MB, free: 0.7891 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.5316, allocations: 318.8 kB / 459.1 MB, free: 480 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.5317, allocations: 31.92 kB / 459.2 MB, free: 448 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/0.5319, allocations: 58.56 kB / 459.2 MB, free: 380 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001646/0.5321, allocations: 65.69 kB / 459.3 MB, free: 308 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.5321, allocations: 4 kB / 459.3 MB, free: 304 kB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004109/0.5325, allocations: 155.3 kB / 459.4 MB, free: 136 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.584e-05/0.5326, allocations: 37.69 kB / 459.5 MB, free: 92 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.5326, allocations: 384 / 459.5 MB, free: 92 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.5326, allocations: 4 kB / 459.5 MB, free: 88 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/0.5328, allocations: 16.06 kB / 459.5 MB, free: 72 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.5328, allocations: 7.984 kB / 459.5 MB, free: 64 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.5329, allocations: 8 kB / 459.5 MB, free: 56 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.5329, 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.0001622/0.5331, allocations: 121.8 kB / 459.6 MB, free: 15.92 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.323e-05/0.5332, allocations: 11.86 kB / 459.7 MB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004121/0.5336, allocations: 134.2 kB / 459.8 MB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.5336, allocations: 4 kB / 459.8 MB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.5336, allocations: 4 kB / 459.8 MB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.5336, allocations: 3.984 kB / 459.8 MB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006873/0.5343, allocations: 403.2 kB / 460.2 MB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.5344, allocations: 0 / 460.2 MB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.348e-05/0.5344, allocations: 11.98 kB / 460.2 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.5345, allocations: 0 / 460.2 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.5345, allocations: 4 kB / 460.2 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.5345, allocations: 0 / 460.2 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.5345, allocations: 4.031 kB / 460.2 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003814/0.5349, allocations: 226 kB / 460.4 MB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.462e-05/0.535, allocations: 97 kB / 460.5 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.593e-05/0.5351, allocations: 3.984 kB / 460.5 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.5352, allocations: 8 kB / 460.5 MB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.933e-05/0.5352, allocations: 11.98 kB / 460.6 MB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.5353, allocations: 0 / 460.6 MB, free: 14.91 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001391/0.5354, allocations: 118 kB / 460.7 MB, free: 14.79 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5354, allocations: 0 / 460.7 MB, free: 14.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004366/0.5359, allocations: 43.98 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.00223/0.5381, allocations: 1.273 MB / 462 MB, free: 13.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004528/0.5386, allocations: 159.2 kB / 462.1 MB, free: 13.36 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.5386, allocations: 0 / 462.1 MB, free: 13.36 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.5388, allocations: 35.92 kB / 462.2 MB, free: 13.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003356/0.5391, allocations: 24.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.001059/0.5402, allocations: 0.6263 MB / 462.8 MB, free: 12.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003349/0.5406, allocations: 0.6965 MB / 463.5 MB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.5407, allocations: 31.42 kB / 463.5 MB, free: 11.85 MB / 394.7 MB Notification: Performance of SimCode: time 1.593e-06/0.5407, allocations: 0 / 463.5 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_Test55CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55InitializeParameter.cpp:42:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55InitializeParameter.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_v4.mat", tmp27); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_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 3.2.2/Resources/Data/Tables/test_v4.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.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_Test55Initialize.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_Test55Initialize.cpp:362:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp18; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.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_Test55CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55.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_Test55.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_Test55.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_Test55CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_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) { ^ 5 warnings and 7 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.o] Error 1