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.Test59.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.Test59,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.203/2.203, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006467/0.000647, allocations: 12 kB / 314.5 MB, free: 9.457 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3564, allocations: 54.86 MB / 369.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1513/0.5078, allocations: 82.36 MB / 451.7 MB, free: 8.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/0.5082, allocations: 83.89 kB / 451.8 MB, free: 8.168 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.02294/0.5312, allocations: 5.168 MB / 457 MB, free: 2.988 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.5312, allocations: 4 kB / 457 MB, free: 2.984 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.447e-05/0.5312, allocations: 4 kB / 457 MB, free: 2.98 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.0006856/0.5319, allocations: 470.2 kB / 457.4 MB, free: 2.461 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.532, allocations: 12.03 kB / 457.5 MB, free: 2.449 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.463e-05/0.532, allocations: 34.56 kB / 457.5 MB, free: 2.406 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.624e-05/0.5321, allocations: 7.906 kB / 457.5 MB, free: 2.398 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003583/0.5325, allocations: 193 kB / 457.7 MB, free: 2.172 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.5325, allocations: 8 kB / 457.7 MB, free: 2.164 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.067e-05/0.5325, allocations: 11.94 kB / 457.7 MB, free: 2.152 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002195/0.5328, allocations: 76.16 kB / 457.8 MB, free: 2.066 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.5328, allocations: 0 / 457.8 MB, free: 2.066 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.5328, allocations: 3.953 kB / 457.8 MB, free: 2.062 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.5328, allocations: 0 / 457.8 MB, free: 2.062 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001194/0.533, allocations: 23.98 kB / 457.8 MB, free: 2.039 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004958/0.5335, allocations: 292.9 kB / 458.1 MB, free: 1.703 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.5337, allocations: 66.61 kB / 458.2 MB, free: 1.629 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.5338, allocations: 0 / 458.2 MB, free: 1.629 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001995/0.534, allocations: 71.47 kB / 458.2 MB, free: 1.547 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.873e-06/0.534, allocations: 3.938 kB / 458.2 MB, free: 1.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007901/0.5348, allocations: 181.3 kB / 458.4 MB, free: 1.359 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/0.5349, allocations: 85.09 kB / 458.5 MB, free: 1.258 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001923/0.5351, allocations: 129.3 kB / 458.6 MB, free: 1.121 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.5351, allocations: 29.7 kB / 458.6 MB, free: 1.086 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.26e-05/0.5352, allocations: 158.5 kB / 458.8 MB, free: 0.9297 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.464e-05/0.5353, allocations: 27.64 kB / 458.8 MB, free: 0.9023 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.241e-05/0.5353, allocations: 8 kB / 458.8 MB, free: 0.8945 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.5355, allocations: 310.8 kB / 459.1 MB, free: 0.582 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.5356, allocations: 35.98 kB / 459.2 MB, free: 0.5469 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.5358, allocations: 58.48 kB / 459.2 MB, free: 492 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.536, allocations: 61.7 kB / 459.3 MB, free: 424 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.536, allocations: 4 kB / 459.3 MB, free: 420 kB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.00043/0.5364, allocations: 167.2 kB / 459.5 MB, free: 240 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.07e-05/0.5365, allocations: 33.7 kB / 459.5 MB, free: 200 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.5365, allocations: 0 / 459.5 MB, free: 200 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.5365, allocations: 8.438 kB / 459.5 MB, free: 192 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.5367, allocations: 15.98 kB / 459.5 MB, free: 176 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.5367, allocations: 0 / 459.5 MB, free: 176 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.658e-05/0.5368, allocations: 12 kB / 459.5 MB, free: 164 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.5368, allocations: 4 kB / 459.5 MB, free: 160 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.0001312/0.537, allocations: 125.8 kB / 459.7 MB, free: 24 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.178e-05/0.537, allocations: 11.86 kB / 459.7 MB, free: 12 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004236/0.5374, allocations: 126.3 kB / 459.8 MB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.5375, allocations: 7.938 kB / 459.8 MB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.5375, allocations: 0 / 459.8 MB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.5375, allocations: 0 / 459.8 MB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006899/0.5382, allocations: 411.1 kB / 460.2 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.5382, allocations: 0 / 460.2 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.902e-05/0.5383, allocations: 8 kB / 460.2 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.461e-05/0.5383, allocations: 3.984 kB / 460.2 MB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.5383, allocations: 4.031 kB / 460.2 MB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.5384, allocations: 4 kB / 460.2 MB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.5384, allocations: 0 / 460.2 MB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003855/0.5388, allocations: 230 kB / 460.4 MB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.269e-05/0.5389, allocations: 97 kB / 460.5 MB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.252e-05/0.5389, allocations: 0 / 460.5 MB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.539, allocations: 12 kB / 460.5 MB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.548e-05/0.5391, allocations: 7.984 kB / 460.6 MB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.5391, allocations: 0 / 460.6 MB, free: 15.01 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001319/0.5393, allocations: 122 kB / 460.7 MB, free: 14.89 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5393, allocations: 0 / 460.7 MB, free: 14.89 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004186/0.5397, allocations: 43.98 kB / 460.7 MB, free: 14.85 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.002242/0.542, allocations: 1.269 MB / 462 MB, free: 13.63 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004435/0.5424, allocations: 155.2 kB / 462.1 MB, free: 13.46 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.5425, allocations: 0 / 462.1 MB, free: 13.46 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001375/0.5426, allocations: 35.92 kB / 462.2 MB, free: 13.43 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000351/0.543, allocations: 28.06 kB / 462.2 MB, free: 13.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.5441, allocations: 0.6222 MB / 462.8 MB, free: 12.71 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/0.5444, allocations: 0.6965 MB / 463.5 MB, free: 11.99 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.5445, allocations: 31.42 kB / 463.5 MB, free: 11.96 MB / 394.7 MB Notification: Performance of SimCode: time 7.92e-07/0.5445, allocations: 0 / 463.5 MB, free: 11.96 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_Test59CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59InitializeParameter.cpp:42:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59InitializeParameter.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_Test59CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Initialize.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_Test59Initialize.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_Test59Initialize.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_Test59Initialize.cpp:362:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp18; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Initialize.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_Test59CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59.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_Test59.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_Test59.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_Test59CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59FMU.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_Test59CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.o] Error 1