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.58/2.58, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.789e-05/3.793e-05, allocations: 4 kB / 309.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4129/0.413, allocations: 54.85 MB / 364.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1921/0.6051, allocations: 82.27 MB / 446.9 MB, free: 14.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/0.6055, allocations: 76.92 kB / 447 MB, free: 14.12 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.02217/0.6276, allocations: 4.973 MB / 452 MB, free: 9.184 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.6277, allocations: 0 / 452 MB, free: 9.184 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.997e-05/0.6277, allocations: 7.938 kB / 452 MB, free: 9.176 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.0006294/0.6284, allocations: 449.7 kB / 452.4 MB, free: 8.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.6284, allocations: 8.031 kB / 452.4 MB, free: 8.672 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.566e-05/0.6285, allocations: 34.56 kB / 452.4 MB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.431e-05/0.6285, allocations: 7.906 kB / 452.4 MB, free: 8.621 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003917/0.6289, allocations: 206.8 kB / 452.6 MB, free: 8.379 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/0.629, allocations: 8 kB / 452.7 MB, free: 8.371 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.695e-05/0.629, allocations: 0 / 452.7 MB, free: 8.371 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001809/0.6292, allocations: 67.39 kB / 452.7 MB, free: 8.293 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.6292, allocations: 3.953 kB / 452.7 MB, free: 8.289 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.6293, allocations: 4 kB / 452.7 MB, free: 8.285 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-06/0.6293, allocations: 0 / 452.7 MB, free: 8.285 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.799e-05/0.6294, allocations: 23.94 kB / 452.8 MB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004861/0.6299, allocations: 292.9 kB / 453 MB, free: 7.926 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001775/0.6301, allocations: 59.7 kB / 453.1 MB, free: 7.859 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.354e-05/0.6302, allocations: 24.94 kB / 453.1 MB, free: 7.832 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.325e-05/0.6302, allocations: 0.6562 kB / 453.1 MB, free: 7.832 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001807/0.6304, allocations: 71.33 kB / 453.2 MB, free: 7.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 2.495e-06/0.6304, allocations: 0 / 453.2 MB, free: 7.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006444/0.631, allocations: 169.2 kB / 453.4 MB, free: 7.578 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.7e-05/0.6311, allocations: 81.05 kB / 453.4 MB, free: 7.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.6313, allocations: 140.4 kB / 453.6 MB, free: 7.336 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.963e-05/0.6314, allocations: 29.7 kB / 453.6 MB, free: 7.301 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.758e-05/0.6314, allocations: 159.9 kB / 453.8 MB, free: 7.145 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.906e-05/0.6315, allocations: 27.64 kB / 453.8 MB, free: 7.117 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.344e-05/0.6315, allocations: 12 kB / 453.8 MB, free: 7.105 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.6317, allocations: 310.8 kB / 454.1 MB, free: 6.793 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.556e-05/0.6318, allocations: 28 kB / 454.1 MB, free: 6.766 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.6319, allocations: 54.56 kB / 454.2 MB, free: 6.703 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001339/0.632, allocations: 65.64 kB / 454.2 MB, free: 6.633 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.6321, allocations: 0 / 454.2 MB, free: 6.633 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003573/0.6324, allocations: 155.9 kB / 454.4 MB, free: 6.469 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.63e-05/0.6325, allocations: 37.75 kB / 454.4 MB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.6325, allocations: 4 kB / 454.4 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.6325, allocations: 0 / 454.4 MB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002064/0.6327, allocations: 12 kB / 454.5 MB, free: 6.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.796e-05/0.6328, allocations: 7.938 kB / 454.5 MB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.6329, allocations: 12.08 kB / 454.5 MB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.6329, allocations: 7.938 kB / 454.5 MB, free: 6.383 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 0.0001015/0.633, allocations: 108.9 kB / 454.6 MB, free: 6.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.477e-05/0.6331, allocations: 11.91 kB / 454.6 MB, free: 6.258 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003477/0.6334, allocations: 126.2 kB / 454.7 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.6335, allocations: 0 / 454.7 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.6335, allocations: 0 / 454.7 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.6335, allocations: 0 / 454.7 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006348/0.6341, allocations: 399.3 kB / 455.1 MB, free: 5.684 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.6342, allocations: 0 / 455.1 MB, free: 5.684 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.822e-05/0.6343, allocations: 11.98 kB / 455.1 MB, free: 5.672 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.528e-06/0.6343, allocations: 8.031 kB / 455.1 MB, free: 5.664 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.6343, allocations: 0 / 455.1 MB, free: 5.664 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.6343, allocations: 0 / 455.1 MB, free: 5.664 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.6343, allocations: 4 kB / 455.1 MB, free: 5.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003408/0.6347, allocations: 221.1 kB / 455.3 MB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.82e-05/0.6348, allocations: 96.94 kB / 455.4 MB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.688e-05/0.6349, allocations: 8 kB / 455.5 MB, free: 5.301 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.635, allocations: 7.984 kB / 455.5 MB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.191e-05/0.635, allocations: 4 kB / 455.5 MB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.6351, allocations: 4 kB / 455.5 MB, free: 5.285 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001281/0.6352, allocations: 119.2 kB / 455.6 MB, free: 5.168 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6352, allocations: 0 / 455.6 MB, free: 5.168 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004219/0.6357, allocations: 47.92 kB / 455.6 MB, free: 5.121 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.002021/0.6377, allocations: 1.221 MB / 456.9 MB, free: 3.945 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003855/0.6381, allocations: 147.3 kB / 457 MB, free: 3.789 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.6381, allocations: 0 / 457 MB, free: 3.789 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.656e-05/0.6382, allocations: 31.94 kB / 457 MB, free: 3.758 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/0.6386, allocations: 28.06 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.0007443/0.6394, allocations: 217.7 kB / 457.3 MB, free: 3.469 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002993/0.6397, allocations: 0.712 MB / 458 MB, free: 2.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.6398, allocations: 35.41 kB / 458 MB, free: 2.695 MB / 378.7 MB Notification: Performance of SimCode: time 1.533e-06/0.6398, allocations: 0 / 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_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