Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1D.Test21.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.CombiTable1D.Test21,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.238/2.238, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004228/0.000423, allocations: 12 kB / 314.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3509, allocations: 54.87 MB / 369.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1D.Test21): time 0.002345/0.3533, allocations: 1.216 MB / 370.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001562/0.3549, allocations: 0.8258 MB / 371.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.015e-05/0.355, allocations: 0 / 371.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000202/0.3552, allocations: 23.91 kB / 371.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.3554, allocations: 23.91 kB / 371.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001413/0.3556, allocations: 35.84 kB / 371.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001314/0.3557, allocations: 35.95 kB / 371.4 MB, free: 10.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.372e-05/0.3558, allocations: 12 kB / 371.4 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.57e-05/0.3559, allocations: 19.92 kB / 371.5 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.3561, allocations: 23.84 kB / 371.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/0.3561, allocations: 0 / 371.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.3562, allocations: 31.98 kB / 371.5 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.402e-05/0.3563, allocations: 4 kB / 371.5 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.432e-05/0.3563, allocations: 37.62 kB / 371.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001668/0.3565, allocations: 67.84 kB / 371.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.3565, allocations: 0 / 371.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3565, allocations: 4 kB / 371.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.3566, allocations: 3.938 kB / 371.6 MB, free: 10.36 MB / 298.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.000548/0.3571, allocations: 385.8 kB / 372 MB, free: 9.926 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.3572, allocations: 16.02 kB / 372 MB, free: 9.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.467e-05/0.3572, allocations: 34.56 kB / 372.1 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.619e-05/0.3573, allocations: 7.953 kB / 372.1 MB, free: 9.859 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002071/0.3575, allocations: 171 kB / 372.2 MB, free: 9.652 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.3575, allocations: 8 kB / 372.2 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.289e-05/0.3576, allocations: 4 kB / 372.2 MB, free: 9.641 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002074/0.3578, allocations: 75.33 kB / 372.3 MB, free: 9.555 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.3578, allocations: 0 / 372.3 MB, free: 9.555 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.3578, allocations: 3.938 kB / 372.3 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3579, allocations: 0 / 372.3 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001538/0.358, allocations: 31.94 kB / 372.4 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004611/0.3585, allocations: 277 kB / 372.6 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002677/0.3588, allocations: 54.48 kB / 372.7 MB, free: 9.137 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.3588, allocations: 0 / 372.7 MB, free: 9.137 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.3589, allocations: 38.56 kB / 372.7 MB, free: 9.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.3589, allocations: 0 / 372.7 MB, free: 9.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0008253/0.3597, allocations: 169.3 kB / 372.9 MB, free: 8.918 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.308e-05/0.3598, allocations: 81.11 kB / 373 MB, free: 8.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.3599, allocations: 117.8 kB / 373.1 MB, free: 8.695 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.36, allocations: 29.7 kB / 373.1 MB, free: 8.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.997e-05/0.3601, allocations: 162.5 kB / 373.3 MB, free: 8.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.7e-05/0.3601, allocations: 19.73 kB / 373.3 MB, free: 8.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.276e-06/0.3601, allocations: 4 kB / 373.3 MB, free: 8.477 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.3603, allocations: 310.8 kB / 373.6 MB, free: 8.164 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.3604, allocations: 31.97 kB / 373.6 MB, free: 8.133 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.3606, allocations: 41.7 kB / 373.7 MB, free: 8.086 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.3608, allocations: 65.73 kB / 373.7 MB, free: 8.016 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3608, allocations: 0 / 373.7 MB, free: 8.016 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003642/0.3612, allocations: 123.3 kB / 373.8 MB, free: 7.883 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.25e-05/0.3612, allocations: 29.7 kB / 373.9 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.3612, allocations: 3.953 kB / 373.9 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.3613, allocations: 4 kB / 373.9 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.3614, allocations: 19.98 kB / 373.9 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.3614, allocations: 0 / 373.9 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.606e-05/0.3615, allocations: 4 kB / 373.9 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.3615, allocations: 4 kB / 373.9 MB, free: 7.812 MB / 298.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 0.0001102/0.3616, allocations: 121.8 kB / 374 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.793e-05/0.3617, allocations: 3.906 kB / 374 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003963/0.3621, allocations: 113.6 kB / 374.1 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.3621, allocations: 7.891 kB / 374.2 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3621, allocations: 0 / 374.2 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.3621, allocations: 0 / 374.2 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006484/0.3628, allocations: 362.8 kB / 374.5 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.3628, allocations: 0 / 374.5 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.3629, allocations: 15.98 kB / 374.5 MB, free: 7.129 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.421e-06/0.363, allocations: 3.953 kB / 374.5 MB, free: 7.125 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.363, allocations: 4 kB / 374.5 MB, free: 7.121 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.363, allocations: 0 / 374.5 MB, free: 7.121 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.363, allocations: 3.984 kB / 374.5 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003789/0.3634, allocations: 191.4 kB / 374.7 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.114e-05/0.3634, allocations: 77.11 kB / 374.8 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.01e-05/0.3635, allocations: 11.95 kB / 374.8 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.3636, allocations: 7.984 kB / 374.8 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.126e-05/0.3637, allocations: 8 kB / 374.8 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.3637, allocations: 0 / 374.8 MB, free: 6.793 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.988e-05/0.3638, allocations: 99.27 kB / 374.9 MB, free: 6.695 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3638, allocations: 3.938 kB / 374.9 MB, free: 6.691 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003349/0.3641, allocations: 27.89 kB / 375 MB, free: 6.664 MB / 298.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.00169/0.3658, allocations: 1 MB / 376 MB, free: 5.734 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003956/0.3663, allocations: 127.3 kB / 376.1 MB, free: 5.598 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3663, allocations: 0 / 376.1 MB, free: 5.598 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.3664, allocations: 31.98 kB / 376.1 MB, free: 5.566 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002503/0.3667, allocations: 11.95 kB / 376.1 MB, free: 5.555 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007784/0.3675, allocations: 400.5 kB / 376.5 MB, free: 5.109 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003311/0.3678, allocations: 0.6965 MB / 377.2 MB, free: 4.387 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.44e-05/0.368, allocations: 27.36 kB / 377.2 MB, free: 4.359 MB / 298.7 MB Notification: Performance of SimCode: time 2.905e-06/0.368, allocations: 0 / 377.2 MB, free: 4.359 MB / 298.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_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21InitializeParameter.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.2/Resources/Data/Tables/test_v7.mat", tmp21); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21Initialize.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_CombiTable1D_Test21Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21Initialize.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_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21.cpp:714:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21FMU.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_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test21CalcHelperMain.o] Error 1