Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1Ds.Test19.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.CombiTable1Ds.Test19,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.447/2.447, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.376e-05/2.386e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3833/0.3834, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.19/0.5734, allocations: 80.46 MB / 438.6 MB, free: 14.28 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/0.5738, allocations: 75.94 kB / 438.7 MB, free: 14.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01317/0.5869, allocations: 3.191 MB / 441.9 MB, free: 11.01 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.587, allocations: 0 / 441.9 MB, free: 11.01 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.587, allocations: 4 kB / 441.9 MB, free: 11 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004758/0.5875, allocations: 400 kB / 442.2 MB, free: 10.56 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.5876, allocations: 12.03 kB / 442.3 MB, free: 10.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.781e-05/0.5877, allocations: 15.86 kB / 442.3 MB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002431/0.5879, allocations: 179 kB / 442.5 MB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.5879, allocations: 4 kB / 442.5 MB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.35e-05/0.588, allocations: 0 / 442.5 MB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.646e-05/0.5881, allocations: 12 kB / 442.5 MB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.5882, allocations: 57.41 kB / 442.5 MB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.5882, allocations: 3.906 kB / 442.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.5883, allocations: 4 kB / 442.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.5883, allocations: 3.953 kB / 442.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003633/0.5886, allocations: 241.5 kB / 442.8 MB, free: 9.953 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.5889, allocations: 34.56 kB / 442.8 MB, free: 9.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.292e-05/0.5889, allocations: 12.86 kB / 442.8 MB, free: 9.895 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.5889, allocations: 0 / 442.8 MB, free: 9.895 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.589, allocations: 42.5 kB / 442.9 MB, free: 9.844 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.543e-06/0.589, allocations: 0 / 442.9 MB, free: 9.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004608/0.5895, allocations: 101.5 kB / 443 MB, free: 9.738 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.5895, allocations: 77.11 kB / 443 MB, free: 9.645 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.5897, allocations: 109 kB / 443.1 MB, free: 9.531 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/0.5897, allocations: 29.69 kB / 443.2 MB, free: 9.496 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.904e-05/0.5898, allocations: 154.6 kB / 443.3 MB, free: 9.344 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.569e-05/0.5898, allocations: 15.75 kB / 443.3 MB, free: 9.328 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.78e-06/0.5898, allocations: 7.938 kB / 443.3 MB, free: 9.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.59, allocations: 314.8 kB / 443.6 MB, free: 9.004 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.227e-05/0.59, allocations: 15.94 kB / 443.7 MB, free: 8.988 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.286e-05/0.5901, allocations: 25.7 kB / 443.7 MB, free: 8.957 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.978e-05/0.5902, allocations: 8 kB / 443.7 MB, free: 8.949 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.5902, allocations: 7.938 kB / 443.7 MB, free: 8.941 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001646/0.5904, allocations: 65.59 kB / 443.8 MB, free: 8.871 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.428e-05/0.5904, allocations: 35.11 kB / 443.8 MB, free: 8.832 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.5905, allocations: 4.031 kB / 443.8 MB, free: 8.828 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.5905, allocations: 0 / 443.8 MB, free: 8.828 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.5906, allocations: 19.94 kB / 443.8 MB, free: 8.809 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.5906, allocations: 0 / 443.8 MB, free: 8.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.654e-05/0.5907, allocations: 4 kB / 443.8 MB, free: 8.805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.5908, allocations: 4 kB / 443.8 MB, free: 8.801 MB / 378.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 () * 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 9.046e-05/0.5909, allocations: 104.9 kB / 443.9 MB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001421/0.591, allocations: 61.94 kB / 444 MB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.751e-05/0.5911, allocations: 7.906 kB / 444 MB, free: 8.617 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000201/0.5913, allocations: 78.09 kB / 444.1 MB, free: 8.539 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.5913, allocations: 0 / 444.1 MB, free: 8.539 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.5913, allocations: 0 / 444.1 MB, free: 8.539 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.5913, allocations: 0 / 444.1 MB, free: 8.539 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004273/0.5918, allocations: 291.1 kB / 444.4 MB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.5918, allocations: 0 / 444.4 MB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.5919, allocations: 19.98 kB / 444.4 MB, free: 8.191 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.5919, allocations: 3.953 kB / 444.4 MB, free: 8.188 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.5919, allocations: 4 kB / 444.4 MB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.5919, allocations: 0 / 444.4 MB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.592, allocations: 0 / 444.4 MB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000188/0.5922, allocations: 159.4 kB / 444.5 MB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.467e-05/0.5922, allocations: 85 kB / 444.6 MB, free: 7.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.334e-05/0.5923, allocations: 7.953 kB / 444.6 MB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.5924, allocations: 8 kB / 444.6 MB, free: 7.895 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.5925, allocations: 8.125 kB / 444.7 MB, free: 7.887 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.5925, allocations: 3.984 kB / 444.7 MB, free: 7.883 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.944e-05/0.5926, allocations: 91.28 kB / 444.7 MB, free: 7.793 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.5926, allocations: 0 / 444.7 MB, free: 7.793 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003687/0.593, allocations: 35.91 kB / 444.8 MB, free: 7.758 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 (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.001297/0.5943, allocations: 0.9168 MB / 445.7 MB, free: 6.863 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001861/0.5945, allocations: 87.41 kB / 445.8 MB, free: 6.766 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.5945, allocations: 4 kB / 445.8 MB, free: 6.762 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.683e-05/0.5945, allocations: 12 kB / 445.8 MB, free: 6.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002374/0.5948, allocations: 7.953 kB / 445.8 MB, free: 6.742 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005605/0.5954, allocations: 171.2 kB / 446 MB, free: 6.527 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.5957, allocations: 0.6924 MB / 446.7 MB, free: 5.809 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.512e-05/0.5958, allocations: 27.42 kB / 446.7 MB, free: 5.781 MB / 378.7 MB Notification: Performance of SimCode: time 8.42e-07/0.5959, allocations: 0 / 446.7 MB, free: 5.781 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=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_CombiTable1Ds_Test19CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp22; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19InitializeParameter.cpp:36: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", tmp22); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19Initialize.cpp:96: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", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_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_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19.cpp:712:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19FMU.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_CombiTable1Ds_Test19CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test19CalcHelperMain.o] Error 1