Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test19.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1D.Test19,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.925/1.925, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004362/0.0004362, allocations: 12 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3447, allocations: 48.7 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1D.Test19): time 0.002281/0.347, allocations: 1.201 MB / 332.5 MB, free: 5.918 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.3486, allocations: 0.8222 MB / 333.3 MB, free: 5.332 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.379e-05/0.3487, allocations: 5.125 kB / 333.3 MB, free: 5.328 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002373/0.349, allocations: 21.16 kB / 333.3 MB, free: 5.316 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001895/0.3492, allocations: 27.64 kB / 333.4 MB, free: 5.301 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001734/0.3494, allocations: 27.8 kB / 333.4 MB, free: 5.289 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001418/0.3495, allocations: 47.42 kB / 333.4 MB, free: 5.262 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.3496, allocations: 11.62 kB / 333.4 MB, free: 5.258 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.48e-05/0.3497, allocations: 17.73 kB / 333.5 MB, free: 5.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001877/0.3499, allocations: 24.48 kB / 333.5 MB, free: 5.238 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.937e-05/0.3499, allocations: 2.562 kB / 333.5 MB, free: 5.238 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001393/0.3501, allocations: 30.33 kB / 333.5 MB, free: 5.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.951e-05/0.3501, allocations: 12.73 kB / 333.5 MB, free: 5.223 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.956e-05/0.3502, allocations: 28.67 kB / 333.5 MB, free: 5.191 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001889/0.3504, allocations: 66.52 kB / 333.6 MB, free: 5.172 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.207e-06/0.3504, allocations: 1.031 kB / 333.6 MB, free: 5.172 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3504, allocations: 0 / 333.6 MB, free: 5.172 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.3504, allocations: 3.938 kB / 333.6 MB, free: 5.168 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005203/0.351, allocations: 389.1 kB / 334 MB, free: 4.766 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.351, allocations: 10.53 kB / 334 MB, free: 4.766 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.099e-05/0.3511, allocations: 34.56 kB / 334 MB, free: 4.723 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.924e-05/0.3511, allocations: 8.609 kB / 334.1 MB, free: 4.719 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001787/0.3513, allocations: 185.9 kB / 334.2 MB, free: 4.508 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.3513, allocations: 5.188 kB / 334.2 MB, free: 4.504 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.505e-05/0.3514, allocations: 3.391 kB / 334.2 MB, free: 4.504 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002109/0.3516, allocations: 63.03 kB / 334.3 MB, free: 4.449 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.3516, allocations: 1.406 kB / 334.3 MB, free: 4.449 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.3516, allocations: 1.594 kB / 334.3 MB, free: 4.449 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.3516, allocations: 0 / 334.3 MB, free: 4.449 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001613/0.3518, allocations: 38.52 kB / 334.3 MB, free: 4.434 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004336/0.3523, allocations: 283.2 kB / 334.6 MB, free: 4.148 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002734/0.3525, allocations: 43.55 kB / 334.7 MB, free: 4.121 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.3526, allocations: 5.875 kB / 334.7 MB, free: 4.117 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.3526, allocations: 35.62 kB / 334.7 MB, free: 4.074 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.993e-06/0.3526, allocations: 0 / 334.7 MB, free: 4.074 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0009104/0.3536, allocations: 163.1 kB / 334.9 MB, free: 4.008 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.3536, allocations: 79.2 kB / 334.9 MB, free: 3.914 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.3538, allocations: 129 kB / 335.1 MB, free: 3.801 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.3538, allocations: 27.39 kB / 335.1 MB, free: 3.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.764e-05/0.3539, allocations: 160.5 kB / 335.2 MB, free: 3.613 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.433e-05/0.3539, allocations: 18.41 kB / 335.3 MB, free: 3.598 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.593e-06/0.3539, allocations: 1.312 kB / 335.3 MB, free: 3.598 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.675e-05/0.354, allocations: 316.2 kB / 335.6 MB, free: 3.281 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.3541, allocations: 26.2 kB / 335.6 MB, free: 3.277 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/0.3543, allocations: 44 kB / 335.6 MB, free: 3.254 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.3545, allocations: 64.5 kB / 335.7 MB, free: 3.207 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3545, allocations: 0.7031 kB / 335.7 MB, free: 3.207 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003692/0.3549, allocations: 119.1 kB / 335.8 MB, free: 3.133 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.683e-05/0.3549, allocations: 31.41 kB / 335.9 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.3549, allocations: 0 / 335.9 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/0.3549, allocations: 1.344 kB / 335.9 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.3551, allocations: 21.62 kB / 335.9 MB, free: 3.094 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.3551, allocations: 5.875 kB / 335.9 MB, free: 3.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.316e-05/0.3552, allocations: 14.41 kB / 335.9 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.3552, allocations: 3.516 kB / 335.9 MB, free: 3.082 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 5 * 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 8.745e-05/0.3553, allocations: 118.5 kB / 336 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.874e-05/0.3554, allocations: 6.25 kB / 336 MB, free: 2.957 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003927/0.3558, allocations: 110.5 kB / 336.1 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3558, allocations: 1.25 kB / 336.1 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3558, allocations: 0 / 336.1 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/0.3558, allocations: 4.594 kB / 336.1 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005998/0.3564, allocations: 368.3 kB / 336.5 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3565, allocations: 0 / 336.5 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.3566, allocations: 19.02 kB / 336.5 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.3566, allocations: 0.6094 kB / 336.5 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.3566, allocations: 1.344 kB / 336.5 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.3566, allocations: 0.5625 kB / 336.5 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3566, allocations: 3.953 kB / 336.5 MB, free: 2.551 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003542/0.357, allocations: 194.2 kB / 336.7 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.336e-05/0.3571, allocations: 88.14 kB / 336.8 MB, free: 2.297 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.666e-05/0.3571, allocations: 1.312 kB / 336.8 MB, free: 2.297 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.3572, allocations: 10.83 kB / 336.8 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.163e-05/0.3573, allocations: 4.359 kB / 336.8 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.3573, allocations: 5.453 kB / 336.8 MB, free: 2.289 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.771e-05/0.3574, allocations: 103 kB / 336.9 MB, free: 2.203 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3574, allocations: 0 / 336.9 MB, free: 2.203 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003533/0.3578, allocations: 25.62 kB / 336.9 MB, free: 2.195 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001328/0.3591, allocations: 0.9368 MB / 337.9 MB, free: 1.414 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004306/0.3596, allocations: 120.1 kB / 338 MB, free: 1.336 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.3596, allocations: 1.312 kB / 338 MB, free: 1.336 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.3598, allocations: 30.03 kB / 338 MB, free: 1.332 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.3601, allocations: 9.016 kB / 338 MB, free: 1.328 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007771/0.3609, allocations: 416.2 kB / 338.4 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001604/0.3611, allocations: 0.6899 MB / 339.1 MB, free: 244 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.801e-05/0.3612, allocations: 24.73 kB / 339.2 MB, free: 228 kB / 266.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3612, allocations: 0 / 339.2 MB, free: 228 kB / 266.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=5 -DSUNDIALS_MINOR_VERSION=4 -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_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19InitializeParameter.cpp:36: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.1/Resources/Data/Tables/test_v4.mat", tmp21); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19Initialize.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.1/Resources/Data/Tables/test_v4.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19Initialize.cpp:262:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp16); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19.cpp:714:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19FMU.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) { ^ 1 warning and 7 errors generated. : recipe for target 'OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.o] Error 1