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.325/2.325, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004536/0.0004535, allocations: 16 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3638/0.3643, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.157/0.5214, allocations: 82.38 MB / 451.7 MB, free: 8.113 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/0.5217, allocations: 79.91 kB / 451.8 MB, free: 8.035 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.0231/0.5449, allocations: 5.406 MB / 457.2 MB, free: 2.617 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.5449, allocations: 3.938 kB / 457.2 MB, free: 2.613 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.648e-05/0.5449, allocations: 4 kB / 457.2 MB, free: 2.609 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.000726/0.5457, allocations: 487 kB / 457.7 MB, free: 2.074 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.5457, allocations: 8.031 kB / 457.7 MB, free: 2.066 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.438e-05/0.5458, allocations: 30.56 kB / 457.7 MB, free: 2.027 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.189e-05/0.5458, allocations: 11.91 kB / 457.8 MB, free: 2.016 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003763/0.5462, allocations: 214.8 kB / 458 MB, free: 1.766 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.5463, allocations: 0 / 458 MB, free: 1.766 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.5463, allocations: 7.953 kB / 458 MB, free: 1.758 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002777/0.5466, allocations: 83.31 kB / 458.1 MB, free: 1.664 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.5466, allocations: 0 / 458.1 MB, free: 1.664 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.5466, allocations: 0 / 458.1 MB, free: 1.664 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.5467, allocations: 0 / 458.1 MB, free: 1.664 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001598/0.5468, allocations: 35.97 kB / 458.1 MB, free: 1.629 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005395/0.5474, allocations: 316.7 kB / 458.4 MB, free: 1.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003192/0.5477, allocations: 78.59 kB / 458.5 MB, free: 1.184 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.5477, allocations: 4 kB / 458.5 MB, free: 1.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002266/0.548, allocations: 79.5 kB / 458.6 MB, free: 1.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.894e-06/0.548, allocations: 3.938 kB / 458.6 MB, free: 1.086 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0009167/0.5489, allocations: 213.7 kB / 458.8 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.97e-05/0.549, allocations: 77.11 kB / 458.8 MB, free: 0.7773 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00022/0.5492, allocations: 147.4 kB / 459 MB, free: 0.625 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.893e-05/0.5493, allocations: 29.7 kB / 459 MB, free: 0.5898 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.394e-05/0.5494, allocations: 162.5 kB / 459.2 MB, free: 440 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.244e-05/0.5494, allocations: 27.64 kB / 459.2 MB, free: 412 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.718e-06/0.5494, allocations: 4 kB / 459.2 MB, free: 408 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.5496, allocations: 318.8 kB / 459.5 MB, free: 80 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.5498, allocations: 43.91 kB / 459.6 MB, free: 36 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.55, allocations: 62.55 kB / 459.6 MB, free: 15.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/0.5502, allocations: 77.59 kB / 459.7 MB, free: 15.88 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.5502, allocations: 0 / 459.7 MB, free: 15.88 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004779/0.5507, allocations: 175.2 kB / 459.9 MB, free: 15.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.971e-05/0.5507, allocations: 39.73 kB / 459.9 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.5507, allocations: 3.984 kB / 459.9 MB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.5508, allocations: 0 / 459.9 MB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.5509, allocations: 20 kB / 459.9 MB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.551, allocations: 4.062 kB / 459.9 MB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.98e-05/0.5511, allocations: 7.984 kB / 459.9 MB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.368e-05/0.5511, allocations: 12 kB / 460 MB, free: 15.61 MB / 394.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 (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.0001555/0.5513, allocations: 129.8 kB / 460.1 MB, free: 15.47 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.124e-05/0.5513, allocations: 7.906 kB / 460.1 MB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004576/0.5518, allocations: 138.4 kB / 460.2 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.5518, allocations: 0 / 460.2 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.5518, allocations: 4 kB / 460.2 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.5518, allocations: 3.938 kB / 460.2 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008175/0.5526, allocations: 443.2 kB / 460.7 MB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.5527, allocations: 4.031 kB / 460.7 MB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.085e-05/0.5528, allocations: 12 kB / 460.7 MB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.5528, allocations: 0 / 460.7 MB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.5528, allocations: 4.281 kB / 460.7 MB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.5528, allocations: 0 / 460.7 MB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5528, allocations: 0 / 460.7 MB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004424/0.5533, allocations: 253.7 kB / 460.9 MB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.5534, allocations: 101 kB / 461 MB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.94e-05/0.5535, allocations: 4 kB / 461 MB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.5536, allocations: 4 kB / 461 MB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.099e-05/0.5536, allocations: 7.984 kB / 461.1 MB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.545e-05/0.5537, allocations: 4 kB / 461.1 MB, free: 14.39 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000152/0.5538, allocations: 126.4 kB / 461.2 MB, free: 14.27 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.515e-06/0.5538, allocations: 0 / 461.2 MB, free: 14.27 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004271/0.5543, allocations: 59.81 kB / 461.2 MB, free: 14.21 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 (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.00222/0.5565, allocations: 1.288 MB / 462.5 MB, free: 12.97 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004635/0.557, allocations: 163.3 kB / 462.7 MB, free: 12.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.557, allocations: 4.062 kB / 462.7 MB, free: 12.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001547/0.5572, allocations: 52.05 kB / 462.7 MB, free: 12.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003331/0.5575, allocations: 23.92 kB / 462.8 MB, free: 12.72 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.5587, allocations: 0.6495 MB / 463.4 MB, free: 12.01 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003349/0.559, allocations: 0.7043 MB / 464.1 MB, free: 11.28 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.5592, allocations: 47.36 kB / 464.2 MB, free: 11.23 MB / 394.7 MB Notification: Performance of SimCode: time 1.202e-06/0.5592, allocations: 0 / 464.2 MB, free: 11.23 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_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