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.Test50.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.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.703/2.703, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.162e-05/4.186e-05, allocations: 4 kB / 309.8 MB, free: 1.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4299/0.43, allocations: 54.85 MB / 364.6 MB, free: 5.391 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1875/0.6177, allocations: 82.29 MB / 446.9 MB, free: 14.11 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003966/0.6181, allocations: 71.95 kB / 447 MB, free: 14.04 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.02394/0.6421, allocations: 5.228 MB / 452.2 MB, free: 8.832 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.6421, allocations: 0 / 452.2 MB, free: 8.832 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.619e-05/0.6422, allocations: 4 kB / 452.2 MB, free: 8.828 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.0006907/0.6429, allocations: 457.6 kB / 452.7 MB, free: 8.324 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.6429, allocations: 8.031 kB / 452.7 MB, free: 8.316 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.875e-05/0.643, allocations: 34.56 kB / 452.7 MB, free: 8.273 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.092e-05/0.643, allocations: 11.89 kB / 452.7 MB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003725/0.6434, allocations: 205.3 kB / 452.9 MB, free: 8.023 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.6435, allocations: 4.844 kB / 452.9 MB, free: 8.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.362e-05/0.6435, allocations: 11.95 kB / 452.9 MB, free: 8.008 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002106/0.6437, allocations: 79.52 kB / 453 MB, free: 7.918 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.6438, allocations: 4 kB / 453 MB, free: 7.914 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.6438, allocations: 7.938 kB / 453 MB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.6438, allocations: 0 / 453 MB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001292/0.6439, allocations: 31.98 kB / 453.1 MB, free: 7.875 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005178/0.6445, allocations: 316.7 kB / 453.4 MB, free: 7.516 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002233/0.6447, allocations: 66.69 kB / 453.4 MB, free: 7.441 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.41e-05/0.6448, allocations: 38.38 kB / 453.5 MB, free: 7.402 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.6448, allocations: 0 / 453.5 MB, free: 7.402 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001912/0.645, allocations: 83.33 kB / 453.5 MB, free: 7.309 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.914e-06/0.6451, allocations: 0 / 453.5 MB, free: 7.309 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0007021/0.6458, allocations: 185.3 kB / 453.7 MB, free: 7.121 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/0.6459, allocations: 77.11 kB / 453.8 MB, free: 7.027 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.6461, allocations: 152.3 kB / 454 MB, free: 6.871 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.6461, allocations: 33.7 kB / 454 MB, free: 6.832 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.075e-05/0.6462, allocations: 158.5 kB / 454.1 MB, free: 6.676 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.402e-05/0.6463, allocations: 27.61 kB / 454.2 MB, free: 6.648 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.258e-05/0.6463, allocations: 4 kB / 454.2 MB, free: 6.645 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.6464, allocations: 322.9 kB / 454.5 MB, free: 6.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.6466, allocations: 35.94 kB / 454.5 MB, free: 6.285 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.6467, allocations: 58.56 kB / 454.6 MB, free: 6.219 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.6469, allocations: 78.41 kB / 454.7 MB, free: 6.137 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.6469, allocations: 0 / 454.7 MB, free: 6.137 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003971/0.6473, allocations: 160 kB / 454.8 MB, free: 5.969 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.983e-05/0.6474, allocations: 37.69 kB / 454.9 MB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/0.6474, allocations: 0 / 454.9 MB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.6474, allocations: 0 / 454.9 MB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.6476, allocations: 27.92 kB / 454.9 MB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.6476, allocations: 0 / 454.9 MB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.6478, allocations: 12.02 kB / 454.9 MB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.568e-05/0.6478, allocations: 4 kB / 454.9 MB, free: 5.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 (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.0001043/0.6479, allocations: 120.9 kB / 455 MB, free: 5.758 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.903e-05/0.6479, allocations: 7.906 kB / 455 MB, free: 5.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003918/0.6483, allocations: 146 kB / 455.2 MB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.6484, allocations: 0 / 455.2 MB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.6484, allocations: 4 kB / 455.2 MB, free: 5.602 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.6484, allocations: 0 / 455.2 MB, free: 5.602 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007009/0.6491, allocations: 435.2 kB / 455.6 MB, free: 5.117 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.6491, allocations: 0 / 455.6 MB, free: 5.117 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001014/0.6492, allocations: 19.92 kB / 455.6 MB, free: 5.098 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.6493, allocations: 0 / 455.6 MB, free: 5.098 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.6493, allocations: 8 kB / 455.6 MB, free: 5.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.6493, allocations: 0 / 455.6 MB, free: 5.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.6493, allocations: 0 / 455.6 MB, free: 5.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003664/0.6497, allocations: 245.6 kB / 455.9 MB, free: 4.828 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.6498, allocations: 100.9 kB / 456 MB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.561e-05/0.6498, allocations: 0 / 456 MB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.65, allocations: 8 kB / 456 MB, free: 4.703 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.047e-05/0.65, allocations: 7.984 kB / 456 MB, free: 4.695 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.059e-05/0.6501, allocations: 4 kB / 456 MB, free: 4.691 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001447/0.6502, allocations: 130.1 kB / 456.1 MB, free: 4.566 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6502, allocations: 4 kB / 456.1 MB, free: 4.562 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004678/0.6507, allocations: 56.12 kB / 456.2 MB, free: 4.508 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.002048/0.6528, allocations: 1.232 MB / 457.4 MB, free: 3.324 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003845/0.6532, allocations: 163.3 kB / 457.6 MB, free: 3.152 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.6532, allocations: 0 / 457.6 MB, free: 3.152 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001215/0.6533, allocations: 43.94 kB / 457.6 MB, free: 3.109 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.6537, allocations: 19.94 kB / 457.6 MB, free: 3.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007747/0.6545, allocations: 245.5 kB / 457.9 MB, free: 2.805 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003454/0.6549, allocations: 0.7162 MB / 458.6 MB, free: 2.062 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.655, allocations: 31.42 kB / 458.6 MB, free: 2.031 MB / 378.7 MB Notification: Performance of SimCode: time 1.172e-06/0.655, allocations: 0 / 458.6 MB, free: 2.031 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