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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.207/2.207, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.925e-05/2.928e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3383/0.3383, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1463/0.4847, allocations: 81.61 MB / 439.7 MB, free: 13.13 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/0.485, allocations: 63.97 kB / 439.8 MB, free: 13.07 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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.0212/0.5062, allocations: 4.833 MB / 444.6 MB, free: 8.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5063, allocations: 0 / 444.6 MB, free: 8.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.5063, allocations: 0 / 444.6 MB, free: 8.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.0006383/0.5069, allocations: 461.6 kB / 445.1 MB, free: 7.723 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.507, allocations: 12.03 kB / 445.1 MB, free: 7.711 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.19e-05/0.5071, allocations: 7.906 kB / 445.1 MB, free: 7.703 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003679/0.5075, allocations: 200.2 kB / 445.3 MB, free: 7.469 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/0.5075, allocations: 7.984 kB / 445.3 MB, free: 7.461 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.5075, allocations: 0 / 445.3 MB, free: 7.461 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.698e-05/0.5076, allocations: 20 kB / 445.3 MB, free: 7.441 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001482/0.5078, allocations: 67.39 kB / 445.4 MB, free: 7.363 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.5078, allocations: 7.953 kB / 445.4 MB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.5079, allocations: 3.984 kB / 445.4 MB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.5079, allocations: 0 / 445.4 MB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004176/0.5083, allocations: 273.3 kB / 445.7 MB, free: 7.047 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000143/0.5085, allocations: 46.69 kB / 445.7 MB, free: 6.992 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.634e-05/0.5085, allocations: 24.98 kB / 445.7 MB, free: 6.965 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.5086, allocations: 4 kB / 445.8 MB, free: 6.961 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001657/0.5087, allocations: 67.34 kB / 445.8 MB, free: 6.883 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 2.054e-06/0.5087, allocations: 0 / 445.8 MB, free: 6.883 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006102/0.5094, allocations: 150 kB / 446 MB, free: 6.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.5094, allocations: 89.03 kB / 446.1 MB, free: 6.625 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001786/0.5096, allocations: 127.4 kB / 446.2 MB, free: 6.492 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/0.5097, allocations: 33.7 kB / 446.2 MB, free: 6.453 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.679e-05/0.5098, allocations: 166.4 kB / 446.4 MB, free: 6.289 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.608e-05/0.5098, allocations: 23.73 kB / 446.4 MB, free: 6.266 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.416e-06/0.5098, allocations: 0 / 446.4 MB, free: 6.266 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.5099, allocations: 310.8 kB / 446.7 MB, free: 5.953 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.603e-05/0.51, allocations: 31.98 kB / 446.7 MB, free: 5.922 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.5102, allocations: 50.52 kB / 446.8 MB, free: 5.863 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001064/0.5103, allocations: 40.02 kB / 446.8 MB, free: 5.824 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.5103, allocations: 0 / 446.8 MB, free: 5.824 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002943/0.5106, allocations: 121.5 kB / 446.9 MB, free: 5.699 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.837e-05/0.5107, allocations: 37.69 kB / 447 MB, free: 5.656 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.5107, allocations: 3.938 kB / 447 MB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.5107, allocations: 0 / 447 MB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.5109, allocations: 12 kB / 447 MB, free: 5.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.5109, allocations: 4 kB / 447 MB, free: 5.637 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.431e-05/0.511, allocations: 8.172 kB / 447 MB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.511, allocations: 8.031 kB / 447 MB, free: 5.621 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 9.014e-05/0.5111, allocations: 105 kB / 447.1 MB, free: 5.512 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002198/0.5113, allocations: 101.5 kB / 447.2 MB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.96e-05/0.5114, allocations: 11.89 kB / 447.2 MB, free: 5.395 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002872/0.5117, allocations: 106.2 kB / 447.3 MB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.5117, allocations: 0 / 447.3 MB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.5117, allocations: 4 kB / 447.3 MB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.5117, allocations: 0 / 447.3 MB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005297/0.5123, allocations: 372 kB / 447.7 MB, free: 4.871 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.5123, allocations: 0 / 447.7 MB, free: 4.871 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.116e-05/0.5124, allocations: 15.92 kB / 447.7 MB, free: 4.855 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.5124, allocations: 4 kB / 447.7 MB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.5124, allocations: 0 / 447.7 MB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.5124, allocations: 0 / 447.7 MB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/0.5124, allocations: 4.078 kB / 447.7 MB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002853/0.5127, allocations: 222 kB / 447.9 MB, free: 4.605 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.509e-05/0.5128, allocations: 93 kB / 448 MB, free: 4.496 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.5129, allocations: 4 kB / 448 MB, free: 4.492 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.513, allocations: 7.984 kB / 448 MB, free: 4.484 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.555e-05/0.5131, allocations: 7.938 kB / 448 MB, free: 4.477 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.5131, allocations: 7.984 kB / 448.1 MB, free: 4.469 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001011/0.5132, allocations: 109.8 kB / 448.2 MB, free: 4.363 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5132, allocations: 4 kB / 448.2 MB, free: 4.359 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004386/0.5137, allocations: 43.92 kB / 448.2 MB, free: 4.316 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.001777/0.5155, allocations: 1.158 MB / 449.4 MB, free: 3.191 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003075/0.5158, allocations: 143.3 kB / 449.5 MB, free: 3.039 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5158, allocations: 0 / 449.5 MB, free: 3.039 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.459e-05/0.5159, allocations: 31.94 kB / 449.5 MB, free: 3.008 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.5163, allocations: 24.89 kB / 449.6 MB, free: 2.984 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006945/0.517, allocations: 221.9 kB / 449.8 MB, free: 2.719 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.5173, allocations: 0.7041 MB / 450.5 MB, free: 1.988 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.457e-05/0.5174, allocations: 35.36 kB / 450.5 MB, free: 1.957 MB / 378.7 MB Notification: Performance of SimCode: time 9.31e-07/0.5174, allocations: 0 / 450.5 MB, free: 1.957 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=7 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"." -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/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/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/OMCompiler/build/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