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.Test56.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.Test56,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test56",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.239/2.239, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004299/0.0004301, allocations: 12 kB / 314.5 MB, free: 9.453 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3348, allocations: 54.86 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1481/0.4829, allocations: 82.36 MB / 451.7 MB, free: 8.145 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.4832, allocations: 83.91 kB / 451.8 MB, free: 8.062 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.02308/0.5063, allocations: 5.164 MB / 457 MB, free: 2.887 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5064, allocations: 3.938 kB / 457 MB, free: 2.883 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.488e-05/0.5064, allocations: 8 kB / 457 MB, free: 2.875 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.0006605/0.5071, allocations: 466.2 kB / 457.4 MB, free: 2.359 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.5071, allocations: 8.031 kB / 457.4 MB, free: 2.352 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.023e-05/0.5072, allocations: 38.55 kB / 457.5 MB, free: 2.305 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.832e-05/0.5072, allocations: 7.906 kB / 457.5 MB, free: 2.297 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/0.5076, allocations: 201 kB / 457.7 MB, free: 2.062 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.5076, allocations: 4 kB / 457.7 MB, free: 2.059 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.845e-05/0.5077, allocations: 15.94 kB / 457.7 MB, free: 2.043 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002491/0.5079, allocations: 72.17 kB / 457.8 MB, free: 1.961 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.508, allocations: 0 / 457.8 MB, free: 1.961 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/0.508, allocations: 3.953 kB / 457.8 MB, free: 1.957 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.508, allocations: 0 / 457.8 MB, free: 1.957 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001146/0.5081, allocations: 19.98 kB / 457.8 MB, free: 1.938 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004729/0.5086, allocations: 296.9 kB / 458.1 MB, free: 1.598 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002531/0.5089, allocations: 70.61 kB / 458.2 MB, free: 1.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.669e-05/0.5089, allocations: 0 / 458.2 MB, free: 1.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002017/0.5091, allocations: 67.47 kB / 458.2 MB, free: 1.441 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.874e-06/0.5092, allocations: 7.938 kB / 458.2 MB, free: 1.434 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007865/0.51, allocations: 177.3 kB / 458.4 MB, free: 1.254 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.722e-05/0.51, allocations: 81.09 kB / 458.5 MB, free: 1.156 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.5102, allocations: 133.3 kB / 458.6 MB, free: 1.016 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.5103, allocations: 29.7 kB / 458.6 MB, free: 0.9805 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.727e-05/0.5103, allocations: 162.5 kB / 458.8 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.775e-05/0.5104, allocations: 23.66 kB / 458.8 MB, free: 0.7969 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.388e-05/0.5104, allocations: 8 kB / 458.8 MB, free: 0.7891 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.5105, allocations: 314.8 kB / 459.1 MB, free: 484 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.5107, allocations: 35.98 kB / 459.2 MB, free: 448 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001413/0.5108, allocations: 54.5 kB / 459.2 MB, free: 384 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.511, allocations: 65.69 kB / 459.3 MB, free: 312 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.511, allocations: 0 / 459.3 MB, free: 312 kB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000402/0.5114, allocations: 167.3 kB / 459.5 MB, free: 132 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.452e-05/0.5115, allocations: 37.69 kB / 459.5 MB, free: 88 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.5115, allocations: 0 / 459.5 MB, free: 88 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.5115, allocations: 8.438 kB / 459.5 MB, free: 80 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.5117, allocations: 12 kB / 459.5 MB, free: 68 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.5117, allocations: 0 / 459.5 MB, free: 68 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.5118, allocations: 11.98 kB / 459.5 MB, free: 56 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.5119, allocations: 8 kB / 459.5 MB, free: 48 kB / 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 () * Number of clocked 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.0001531/0.512, allocations: 117.8 kB / 459.6 MB, free: 15.92 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.392e-05/0.5121, allocations: 15.8 kB / 459.7 MB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003821/0.5125, allocations: 122.2 kB / 459.8 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.5125, allocations: 4 kB / 459.8 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.5125, allocations: 4 kB / 459.8 MB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.5125, allocations: 7.922 kB / 459.8 MB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006524/0.5132, allocations: 399.3 kB / 460.2 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.5132, allocations: 4 kB / 460.2 MB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.133e-05/0.5133, allocations: 11.94 kB / 460.2 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.5133, allocations: 3.984 kB / 460.2 MB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.5133, allocations: 12.02 kB / 460.2 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.5134, allocations: 0 / 460.2 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.5134, allocations: 0 / 460.2 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003667/0.5137, allocations: 226 kB / 460.4 MB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.848e-05/0.5138, allocations: 93 kB / 460.5 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.71e-05/0.5139, allocations: 7.984 kB / 460.5 MB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.514, allocations: 8 kB / 460.5 MB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.4e-05/0.5141, allocations: 8 kB / 460.6 MB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.5141, allocations: 3.984 kB / 460.6 MB, free: 14.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001273/0.5142, allocations: 114 kB / 460.7 MB, free: 14.79 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5143, allocations: 0 / 460.7 MB, free: 14.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004139/0.5147, allocations: 47.98 kB / 460.7 MB, free: 14.75 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 (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.002167/0.5169, allocations: 1.265 MB / 462 MB, free: 13.53 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004343/0.5173, allocations: 159.2 kB / 462.1 MB, free: 13.36 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5173, allocations: 0 / 462.1 MB, free: 13.36 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001267/0.5175, allocations: 31.94 kB / 462.2 MB, free: 13.33 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.5178, allocations: 28.06 kB / 462.2 MB, free: 13.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.5189, allocations: 0.63 MB / 462.8 MB, free: 12.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.5192, allocations: 0.6965 MB / 463.5 MB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.5193, allocations: 27.42 kB / 463.5 MB, free: 11.85 MB / 394.7 MB Notification: Performance of SimCode: time 8.72e-07/0.5193, allocations: 0 / 463.5 MB, free: 11.85 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_Test56CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test56InitializeParameter.cpp:42:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test56InitializeParameter.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_v6.mat", tmp27); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test56Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test56Initialize.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_v6.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test56Initialize.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_Test56Initialize.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_Test56Initialize.cpp:362:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp18; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test56Initialize.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_Test56CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test56.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_Test56.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_Test56.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_Test56CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test56FMU.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_Test56CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.o] Error 1