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.Test57.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.Test57,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.463/2.463, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.935e-05/3.957e-05, allocations: 8 kB / 309.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4514/0.4514, allocations: 54.85 MB / 364.6 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1823/0.6338, allocations: 82.27 MB / 446.9 MB, free: 14.18 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.6341, allocations: 71.97 kB / 447 MB, free: 14.11 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.02123/0.6554, allocations: 4.979 MB / 452 MB, free: 9.164 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.6554, allocations: 0 / 452 MB, free: 9.164 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.6554, allocations: 0 / 452 MB, free: 9.164 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.0005677/0.656, allocations: 453.6 kB / 452.4 MB, free: 8.664 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.6561, allocations: 8.031 kB / 452.4 MB, free: 8.656 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.034e-05/0.6561, allocations: 38.56 kB / 452.4 MB, free: 8.609 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.797e-05/0.6562, allocations: 11.91 kB / 452.5 MB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003232/0.6565, allocations: 194.9 kB / 452.7 MB, free: 8.367 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.6565, allocations: 8 kB / 452.7 MB, free: 8.359 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.464e-05/0.6566, allocations: 4 kB / 452.7 MB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001762/0.6568, allocations: 71.33 kB / 452.7 MB, free: 8.273 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.6568, allocations: 3.953 kB / 452.7 MB, free: 8.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.6568, allocations: 0 / 452.7 MB, free: 8.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.6568, allocations: 0.8438 kB / 452.7 MB, free: 8.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.503e-05/0.6569, allocations: 27.98 kB / 452.8 MB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004365/0.6574, allocations: 284.9 kB / 453 MB, free: 7.914 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/0.6576, allocations: 59.66 kB / 453.1 MB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.596e-05/0.6577, allocations: 24.94 kB / 453.1 MB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.484e-05/0.6577, allocations: 0 / 453.1 MB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001632/0.6579, allocations: 71.39 kB / 453.2 MB, free: 7.738 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.963e-06/0.6579, allocations: 0 / 453.2 MB, free: 7.738 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.000601/0.6585, allocations: 169.2 kB / 453.4 MB, free: 7.566 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.6585, allocations: 81.86 kB / 453.4 MB, free: 7.469 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.6587, allocations: 132.8 kB / 453.6 MB, free: 7.332 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.6588, allocations: 33.64 kB / 453.6 MB, free: 7.293 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.747e-05/0.6589, allocations: 166.5 kB / 453.8 MB, free: 7.129 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.285e-05/0.6589, allocations: 23.66 kB / 453.8 MB, free: 7.105 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.269e-05/0.659, allocations: 8 kB / 453.8 MB, free: 7.098 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.6591, allocations: 314.8 kB / 454.1 MB, free: 6.781 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.573e-05/0.6592, allocations: 32 kB / 454.1 MB, free: 6.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001142/0.6593, allocations: 55.25 kB / 454.2 MB, free: 6.688 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001311/0.6595, allocations: 65.64 kB / 454.3 MB, free: 6.617 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.6595, allocations: 0 / 454.3 MB, free: 6.617 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003315/0.6598, allocations: 159.3 kB / 454.4 MB, free: 6.449 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.236e-05/0.6599, allocations: 33.7 kB / 454.4 MB, free: 6.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.6599, allocations: 0 / 454.4 MB, free: 6.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.6599, allocations: 0 / 454.4 MB, free: 6.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.6601, allocations: 20.83 kB / 454.5 MB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.6601, allocations: 0 / 454.5 MB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.112e-05/0.6602, allocations: 8 kB / 454.5 MB, free: 6.383 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.6602, allocations: 4 kB / 454.5 MB, free: 6.379 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.812e-05/0.6603, allocations: 117 kB / 454.6 MB, free: 6.258 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.865e-05/0.6604, allocations: 15.83 kB / 454.6 MB, free: 6.242 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003147/0.6607, allocations: 111.6 kB / 454.7 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.6607, allocations: 0 / 454.7 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.6607, allocations: 0 / 454.7 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.6607, allocations: 11.92 kB / 454.7 MB, free: 6.121 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005765/0.6613, allocations: 391.3 kB / 455.1 MB, free: 5.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.6613, allocations: 0 / 455.1 MB, free: 5.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.439e-05/0.6614, allocations: 19.97 kB / 455.1 MB, free: 5.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/0.6615, allocations: 3.984 kB / 455.1 MB, free: 5.656 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.6615, allocations: 0 / 455.1 MB, free: 5.656 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.6615, allocations: 4 kB / 455.1 MB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.6615, allocations: 3.984 kB / 455.1 MB, free: 5.648 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000311/0.6618, allocations: 222.5 kB / 455.4 MB, free: 5.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.366e-05/0.6619, allocations: 97 kB / 455.4 MB, free: 5.297 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.129e-05/0.662, allocations: 8 kB / 455.5 MB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.6621, allocations: 3.938 kB / 455.5 MB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.484e-05/0.6622, allocations: 7.984 kB / 455.5 MB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.6622, allocations: 4 kB / 455.5 MB, free: 5.273 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001187/0.6623, allocations: 115.2 kB / 455.6 MB, free: 5.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6623, allocations: 0 / 455.6 MB, free: 5.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004008/0.6627, allocations: 47.92 kB / 455.6 MB, free: 5.113 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.001947/0.6647, allocations: 1.219 MB / 456.9 MB, free: 3.945 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000331/0.6651, allocations: 151.3 kB / 457 MB, free: 3.785 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.6651, allocations: 0 / 457 MB, free: 3.785 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.526e-05/0.6652, allocations: 36.05 kB / 457 MB, free: 3.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.6655, allocations: 19.94 kB / 457.1 MB, free: 3.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00069/0.6662, allocations: 225.7 kB / 457.3 MB, free: 3.461 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.6665, allocations: 0.7042 MB / 458 MB, free: 2.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.959e-05/0.6666, allocations: 31.42 kB / 458 MB, free: 2.699 MB / 378.7 MB Notification: Performance of SimCode: time 8.21e-07/0.6667, allocations: 4.062 kB / 458 MB, free: 2.695 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_Test57CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57InitializeParameter.cpp:42:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57InitializeParameter.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_v7.mat", tmp27); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.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_v7.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.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_Test57Initialize.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_Test57Initialize.cpp:362:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp18; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.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_Test57CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57.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_Test57.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_Test57.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_Test57CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57FMU.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_Test57CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.o] Error 1