Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test17.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test17,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.259/2.259, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.161e-05/2.165e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3782/0.3782, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1485/0.5268, allocations: 80.77 MB / 438.9 MB, free: 13.97 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.5271, allocations: 79.95 kB / 439 MB, free: 13.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01081/0.538, allocations: 2.518 MB / 441.5 MB, free: 11.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.538, allocations: 4 kB / 441.5 MB, free: 11.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.538, allocations: 3.938 kB / 441.5 MB, free: 11.35 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004275/0.5385, allocations: 354.9 kB / 441.8 MB, free: 10.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.877e-05/0.5386, allocations: 12.03 kB / 441.9 MB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.655e-05/0.5386, allocations: 11.86 kB / 441.9 MB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001904/0.5388, allocations: 178.8 kB / 442 MB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.5389, allocations: 4 kB / 442 MB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.5389, allocations: 4 kB / 442.1 MB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001452/0.5391, allocations: 32 kB / 442.1 MB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003043/0.5394, allocations: 181 kB / 442.3 MB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.5394, allocations: 4 kB / 442.3 MB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.5394, allocations: 3.938 kB / 442.3 MB, free: 10.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-05/0.5395, allocations: 8 kB / 442.3 MB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001426/0.5409, allocations: 1.674 MB / 443.9 MB, free: 8.664 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.5411, allocations: 169.1 kB / 444.1 MB, free: 8.488 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.65e-05/0.5411, allocations: 88.14 kB / 444.2 MB, free: 8.398 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.946e-05/0.5412, allocations: 75.28 kB / 444.3 MB, free: 8.324 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.178e-05/0.5413, allocations: 105.8 kB / 444.4 MB, free: 8.211 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 4.758e-06/0.5413, allocations: 0 / 444.4 MB, free: 8.211 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 0.0001191/0.5414, allocations: 43 kB / 444.4 MB, free: 8.164 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.5415, allocations: 51.41 kB / 444.5 MB, free: 8.102 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002729/0.5418, allocations: 169.8 kB / 444.6 MB, free: 7.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.5418, allocations: 29.7 kB / 444.7 MB, free: 7.895 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.542, allocations: 213.6 kB / 444.9 MB, free: 7.684 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.406e-06/0.542, allocations: 4 kB / 444.9 MB, free: 7.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.967e-06/0.542, allocations: 0 / 444.9 MB, free: 7.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.5422, allocations: 318.8 kB / 445.2 MB, free: 7.359 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.258e-05/0.5423, allocations: 27.98 kB / 445.2 MB, free: 7.332 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002145/0.5425, allocations: 153.1 kB / 445.4 MB, free: 7.121 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000173/0.5427, allocations: 63.91 kB / 445.4 MB, free: 7.059 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.5427, allocations: 0 / 445.4 MB, free: 7.059 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005115/0.5432, allocations: 169.6 kB / 445.6 MB, free: 6.887 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.5433, allocations: 4 kB / 445.6 MB, free: 6.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.5433, allocations: 8 kB / 445.6 MB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.806e-05/0.5433, allocations: 7.984 kB / 445.6 MB, free: 6.867 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/0.5437, allocations: 39.91 kB / 445.7 MB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.593e-05/0.5437, allocations: 8 kB / 445.7 MB, free: 6.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001989/0.5439, allocations: 15.84 kB / 445.7 MB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.85e-05/0.5439, allocations: 12 kB / 445.7 MB, free: 6.793 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 prepare postOptimizeDAE: time 0.0001444/0.5441, allocations: 192.3 kB / 445.9 MB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001343/0.5442, allocations: 142.5 kB / 446 MB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.5444, allocations: 123.6 kB / 446.1 MB, free: 6.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.06e-05/0.5445, allocations: 116.9 kB / 446.2 MB, free: 6.199 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.849e-05/0.5446, allocations: 180.2 kB / 446.4 MB, free: 6.016 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.658e-05/0.5447, allocations: 180.2 kB / 446.6 MB, free: 5.832 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.494e-05/0.5448, allocations: 184.2 kB / 446.8 MB, free: 5.645 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003836/0.5452, allocations: 401.8 kB / 447.2 MB, free: 5.207 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.723e-05/0.5453, allocations: 112.9 kB / 447.3 MB, free: 5.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.406e-05/0.5453, allocations: 104.9 kB / 447.4 MB, free: 4.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.11e-05/0.5454, allocations: 180.2 kB / 447.6 MB, free: 4.797 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.501e-05/0.5455, allocations: 176.3 kB / 447.7 MB, free: 4.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.257e-05/0.5457, allocations: 188.2 kB / 447.9 MB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.611e-05/0.5458, allocations: 180.3 kB / 448.1 MB, free: 4.242 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000202/0.546, allocations: 311.6 kB / 448.4 MB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001329/0.5461, allocations: 186 kB / 448.6 MB, free: 3.707 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.5463, allocations: 192.2 kB / 448.8 MB, free: 3.512 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.5465, allocations: 112.9 kB / 448.9 MB, free: 3.395 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.047e-05/0.5466, allocations: 176.3 kB / 449 MB, free: 3.215 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.853e-05/0.5466, allocations: 101 kB / 449.1 MB, free: 3.109 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002018/0.5469, allocations: 127.4 kB / 449.3 MB, free: 2.984 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.5469, allocations: 3.938 kB / 449.3 MB, free: 2.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007472/0.5476, allocations: 12 kB / 449.3 MB, free: 2.969 MB / 378.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.001151/0.5488, allocations: 0.8863 MB / 450.2 MB, free: 2.078 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000262/0.5491, allocations: 72.55 kB / 450.2 MB, free: 2.008 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5491, allocations: 0 / 450.2 MB, free: 2.008 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.106e-06/0.5491, allocations: 0 / 450.2 MB, free: 2.008 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005361/0.5497, allocations: 0.5263 MB / 450.8 MB, free: 1.477 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.5507, allocations: 263.8 kB / 451 MB, free: 1.172 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004202/0.5512, allocations: 0.7045 MB / 451.7 MB, free: 452 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.5513, allocations: 27.44 kB / 451.8 MB, free: 424 kB / 378.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5513, allocations: 0 / 451.8 MB, free: 424 kB / 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=7 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"." -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17InitializeParameter.cpp:27:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp8; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17InitializeParameter.cpp:28:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/test_v4.mat", tmp8); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17Initialize.cpp:96:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp4; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17Initialize.cpp:97:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/test_v4.mat", tmp4); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17Initialize.cpp:377:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp6; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17Initialize.cpp:378:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp6); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17.cpp:606:16: error: use of undeclared identifier 'tmp0' _fileName_ = tmp0; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17FMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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_CombiTable2D_Test17CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.o] Error 1