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.Test59.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.Test59,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.64/2.64, allocations: 235 MB / 248 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.118e-05/4.134e-05, allocations: 7.984 kB / 309.8 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3854/0.3855, allocations: 54.85 MB / 364.6 MB, free: 5.551 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1498/0.5354, allocations: 82.27 MB / 446.9 MB, free: 14.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002708/0.5357, allocations: 77.02 kB / 447 MB, free: 14.17 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.0233/0.559, allocations: 4.965 MB / 451.9 MB, free: 9.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.559, allocations: 0 / 451.9 MB, free: 9.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.5591, allocations: 0 / 451.9 MB, free: 9.23 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.0006312/0.5597, allocations: 457.6 kB / 452.4 MB, free: 8.727 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.5598, allocations: 8.031 kB / 452.4 MB, free: 8.719 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.306e-05/0.5598, allocations: 39.88 kB / 452.4 MB, free: 8.672 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.078e-05/0.5599, allocations: 15.84 kB / 452.5 MB, free: 8.656 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003646/0.5603, allocations: 195 kB / 452.6 MB, free: 8.426 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.5603, allocations: 7.984 kB / 452.7 MB, free: 8.418 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.089e-05/0.5604, allocations: 4 kB / 452.7 MB, free: 8.414 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001909/0.5606, allocations: 67.39 kB / 452.7 MB, free: 8.336 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.5606, allocations: 3.906 kB / 452.7 MB, free: 8.332 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.5606, allocations: 3.953 kB / 452.7 MB, free: 8.328 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.5606, allocations: 4 kB / 452.7 MB, free: 8.324 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.034e-05/0.5607, allocations: 23.94 kB / 452.8 MB, free: 8.301 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005235/0.5613, allocations: 288.9 kB / 453 MB, free: 7.969 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001676/0.5615, allocations: 54.84 kB / 453.1 MB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.53e-05/0.5615, allocations: 20.98 kB / 453.1 MB, free: 7.883 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.5616, allocations: 7.953 kB / 453.1 MB, free: 7.875 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001857/0.5618, allocations: 75.98 kB / 453.2 MB, free: 7.789 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 3.106e-06/0.5618, allocations: 0 / 453.2 MB, free: 7.789 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006716/0.5625, allocations: 161.2 kB / 453.4 MB, free: 7.625 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.7e-05/0.5626, allocations: 81.11 kB / 453.4 MB, free: 7.527 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.5628, allocations: 136.4 kB / 453.6 MB, free: 7.387 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.5628, allocations: 33.64 kB / 453.6 MB, free: 7.348 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.19e-05/0.5629, allocations: 166.5 kB / 453.8 MB, free: 7.184 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.022e-05/0.5629, allocations: 28.86 kB / 453.8 MB, free: 7.156 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.139e-05/0.563, allocations: 4 kB / 453.8 MB, free: 7.152 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.5631, allocations: 310.8 kB / 454.1 MB, free: 6.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.936e-05/0.5632, allocations: 32 kB / 454.1 MB, free: 6.809 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001157/0.5633, allocations: 51.66 kB / 454.2 MB, free: 6.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001366/0.5635, allocations: 66.56 kB / 454.2 MB, free: 6.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.5635, allocations: 7.984 kB / 454.3 MB, free: 6.672 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003687/0.5639, allocations: 151.9 kB / 454.4 MB, free: 6.512 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.258e-05/0.5639, allocations: 37.69 kB / 454.4 MB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.564, allocations: 0 / 454.4 MB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.564, allocations: 0 / 454.4 MB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.5642, allocations: 19.94 kB / 454.5 MB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.5642, allocations: 96 / 454.5 MB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.5643, allocations: 15.92 kB / 454.5 MB, free: 6.434 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.5644, allocations: 4 kB / 454.5 MB, free: 6.43 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.0001073/0.5645, allocations: 113 kB / 454.6 MB, free: 6.312 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.431e-05/0.5645, allocations: 11.86 kB / 454.6 MB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003466/0.5649, allocations: 114.2 kB / 454.7 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.5649, allocations: 0 / 454.7 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.5649, allocations: 0 / 454.7 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.359e-06/0.5649, allocations: 4 kB / 454.7 MB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006473/0.5656, allocations: 399.2 kB / 455.1 MB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.5656, allocations: 4.031 kB / 455.1 MB, free: 5.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.871e-05/0.5657, allocations: 15.98 kB / 455.1 MB, free: 5.715 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.5657, allocations: 0 / 455.1 MB, free: 5.715 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.5657, allocations: 0 / 455.1 MB, free: 5.715 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.5658, allocations: 4 kB / 455.1 MB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5658, allocations: 0 / 455.1 MB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003232/0.5661, allocations: 225.2 kB / 455.3 MB, free: 5.469 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.5662, allocations: 93 kB / 455.4 MB, free: 5.359 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.032e-05/0.5663, allocations: 8 kB / 455.4 MB, free: 5.352 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/0.5664, allocations: 7.922 kB / 455.5 MB, free: 5.344 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.494e-05/0.5665, allocations: 7.938 kB / 455.5 MB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.907e-05/0.5665, allocations: 7.984 kB / 455.5 MB, free: 5.328 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001312/0.5667, allocations: 115.2 kB / 455.6 MB, free: 5.215 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5667, allocations: 0 / 455.6 MB, free: 5.215 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004199/0.5671, allocations: 51.94 kB / 455.6 MB, free: 5.164 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.002027/0.5691, allocations: 1.217 MB / 456.8 MB, free: 3.996 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000393/0.5696, allocations: 151.3 kB / 457 MB, free: 3.836 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.5696, allocations: 4.062 kB / 457 MB, free: 3.832 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.996e-05/0.5697, allocations: 35.94 kB / 457 MB, free: 3.797 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003644/0.5701, allocations: 19.94 kB / 457.1 MB, free: 3.777 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007608/0.5709, allocations: 217.7 kB / 457.3 MB, free: 3.516 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.5712, allocations: 0.7004 MB / 458 MB, free: 2.789 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.5713, allocations: 39.47 kB / 458 MB, free: 2.75 MB / 378.7 MB Notification: Performance of SimCode: time 1.453e-06/0.5713, allocations: 0 / 458 MB, free: 2.75 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_Test59CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59InitializeParameter.cpp:42:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59InitializeParameter.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.txt", tmp27); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Initialize.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", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Initialize.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_Test59Initialize.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_Test59Initialize.cpp:362:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp18; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Initialize.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_Test59CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59.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_Test59.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_Test59.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_Test59CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59FMU.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_Test59CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.o] Error 1