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.Test60.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.Test60,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test60",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.486/2.486, allocations: 235 MB / 248 MB, free: 14.55 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.796e-05/4.824e-05, allocations: 8 kB / 309.8 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3977/0.3978, allocations: 54.85 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1501/0.5479, allocations: 82.28 MB / 446.9 MB, free: 14.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/0.5482, allocations: 71.95 kB / 447 MB, free: 14.16 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.02277/0.571, allocations: 4.973 MB / 451.9 MB, free: 9.211 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5711, allocations: 4 kB / 452 MB, free: 9.207 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.638e-05/0.5711, allocations: 4 kB / 452 MB, free: 9.203 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.0007311/0.5719, allocations: 449.6 kB / 452.4 MB, free: 8.707 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.5719, allocations: 8.031 kB / 452.4 MB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.391e-05/0.572, allocations: 34.55 kB / 452.4 MB, free: 8.656 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.777e-05/0.5721, allocations: 15.84 kB / 452.5 MB, free: 8.641 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003824/0.5724, allocations: 195 kB / 452.6 MB, free: 8.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.5725, allocations: 4.844 kB / 452.6 MB, free: 8.406 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.005e-05/0.5725, allocations: 7.984 kB / 452.7 MB, free: 8.398 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.5727, allocations: 63.41 kB / 452.7 MB, free: 8.324 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.5728, allocations: 7.906 kB / 452.7 MB, free: 8.316 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.5728, allocations: 11.94 kB / 452.7 MB, free: 8.305 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.5728, allocations: 0 / 452.7 MB, free: 8.305 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.605e-05/0.5729, allocations: 19.94 kB / 452.8 MB, free: 8.285 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005582/0.5735, allocations: 288.9 kB / 453 MB, free: 7.953 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001974/0.5737, allocations: 58.83 kB / 453.1 MB, free: 7.887 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.424e-05/0.5738, allocations: 30.38 kB / 453.1 MB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.5738, allocations: 3.953 kB / 453.1 MB, free: 7.852 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002019/0.574, allocations: 63.34 kB / 453.2 MB, free: 7.777 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 3.286e-06/0.5741, allocations: 4 kB / 453.2 MB, free: 7.773 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007018/0.5748, allocations: 161.2 kB / 453.4 MB, free: 7.609 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.825e-05/0.5749, allocations: 85.11 kB / 453.4 MB, free: 7.508 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001999/0.5751, allocations: 136.4 kB / 453.6 MB, free: 7.367 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.299e-05/0.5751, allocations: 33.64 kB / 453.6 MB, free: 7.328 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.61e-05/0.5752, allocations: 158.5 kB / 453.8 MB, free: 7.172 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.851e-05/0.5753, allocations: 23.66 kB / 453.8 MB, free: 7.148 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.414e-05/0.5753, allocations: 8 kB / 453.8 MB, free: 7.141 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.5755, allocations: 314.8 kB / 454.1 MB, free: 6.824 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.675e-05/0.5756, allocations: 28 kB / 454.1 MB, free: 6.797 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.5757, allocations: 58.56 kB / 454.2 MB, free: 6.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001419/0.5759, allocations: 70.94 kB / 454.2 MB, free: 6.656 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.5759, allocations: 7.891 kB / 454.3 MB, free: 6.648 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003711/0.5763, allocations: 148.1 kB / 454.4 MB, free: 6.492 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.031e-05/0.5763, allocations: 33.7 kB / 454.4 MB, free: 6.453 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.5763, allocations: 192 / 454.4 MB, free: 6.453 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.5764, allocations: 3.984 kB / 454.4 MB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.5766, allocations: 24 kB / 454.5 MB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.5766, allocations: 4 kB / 454.5 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.5767, allocations: 8 kB / 454.5 MB, free: 6.414 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.5767, allocations: 7.984 kB / 454.5 MB, free: 6.406 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.0001047/0.5769, allocations: 109 kB / 454.6 MB, free: 6.293 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.556e-05/0.5769, allocations: 11.86 kB / 454.6 MB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003511/0.5773, allocations: 114.2 kB / 454.7 MB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.5773, allocations: 0 / 454.7 MB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.5773, allocations: 4 kB / 454.7 MB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.5773, allocations: 0 / 454.7 MB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006518/0.578, allocations: 403.2 kB / 455.1 MB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.578, allocations: 0 / 455.1 MB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.303e-05/0.5781, allocations: 8 kB / 455.1 MB, free: 5.703 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.351e-06/0.5781, allocations: 4 kB / 455.1 MB, free: 5.699 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.5781, allocations: 7.984 kB / 455.1 MB, free: 5.691 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.5782, allocations: 0 / 455.1 MB, free: 5.691 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.5782, allocations: 4 kB / 455.1 MB, free: 5.688 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003447/0.5785, allocations: 225.1 kB / 455.4 MB, free: 5.445 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.319e-05/0.5786, allocations: 93 kB / 455.4 MB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.642e-05/0.5787, allocations: 0 / 455.4 MB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.5788, allocations: 7.938 kB / 455.5 MB, free: 5.328 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.809e-05/0.5789, allocations: 11.92 kB / 455.5 MB, free: 5.316 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.5789, allocations: 12 kB / 455.5 MB, free: 5.305 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001334/0.5791, allocations: 111.2 kB / 455.6 MB, free: 5.195 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5791, allocations: 288 / 455.6 MB, free: 5.195 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004183/0.5795, allocations: 51.92 kB / 455.6 MB, free: 5.145 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.001992/0.5815, allocations: 1.221 MB / 456.9 MB, free: 3.973 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003851/0.582, allocations: 147.3 kB / 457 MB, free: 3.816 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.582, allocations: 0 / 457 MB, free: 3.816 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.5821, allocations: 35.92 kB / 457 MB, free: 3.781 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.5825, allocations: 23.94 kB / 457.1 MB, free: 3.758 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007994/0.5833, allocations: 221.9 kB / 457.3 MB, free: 3.492 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003/0.5836, allocations: 0.7004 MB / 458 MB, free: 2.766 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.5837, allocations: 31.42 kB / 458 MB, free: 2.734 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5837, allocations: 192 / 458 MB, free: 2.734 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_Test60CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test60InitializeParameter.cpp:42:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test60InitializeParameter.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_Test60CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test60Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test60Initialize.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_Test60Initialize.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_Test60Initialize.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_Test60Initialize.cpp:362:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp18; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test60Initialize.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_Test60CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test60.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_Test60.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_Test60.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_Test60CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test60FMU.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_Test60CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.o] Error 1