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.Test12.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.Test12,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.604/2.604, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.145e-05/2.169e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3483, allocations: 54.85 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1461/0.4945, allocations: 80.46 MB / 438.6 MB, free: 14.3 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.4949, allocations: 63.97 kB / 438.6 MB, free: 14.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01333/0.5082, allocations: 3.174 MB / 441.8 MB, free: 11.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5083, allocations: 0 / 441.8 MB, free: 11.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.521e-05/0.5083, allocations: 4 kB / 441.8 MB, free: 11.05 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005555/0.5089, allocations: 408 kB / 442.2 MB, free: 10.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.5089, allocations: 12.03 kB / 442.2 MB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.995e-05/0.509, allocations: 11.86 kB / 442.2 MB, free: 10.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002558/0.5093, allocations: 182.9 kB / 442.4 MB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.5093, allocations: 0 / 442.4 MB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.647e-05/0.5093, allocations: 3.984 kB / 442.4 MB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001049/0.5094, allocations: 23.94 kB / 442.4 MB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000132/0.5096, allocations: 61.47 kB / 442.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.5096, allocations: 0 / 442.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.5096, allocations: 3.953 kB / 442.5 MB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.5096, allocations: 4 kB / 442.5 MB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004038/0.5101, allocations: 257.4 kB / 442.8 MB, free: 9.969 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.48e-05/0.5102, allocations: 34.52 kB / 442.8 MB, free: 9.926 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.878e-05/0.5102, allocations: 12.86 kB / 442.8 MB, free: 9.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.5103, allocations: 8.062 kB / 442.8 MB, free: 9.902 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.5103, allocations: 42.52 kB / 442.9 MB, free: 9.852 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 1.613e-06/0.5103, allocations: 0 / 442.9 MB, free: 9.852 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0008065/0.5111, allocations: 125.3 kB / 443 MB, free: 9.723 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.5112, allocations: 81.11 kB / 443.1 MB, free: 9.625 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/0.5114, allocations: 112.9 kB / 443.2 MB, free: 9.508 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.5115, allocations: 29.7 kB / 443.2 MB, free: 9.473 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.5116, allocations: 158.5 kB / 443.4 MB, free: 9.316 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.632e-05/0.5116, allocations: 23.64 kB / 443.4 MB, free: 9.293 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.127e-05/0.5117, allocations: 0 / 443.4 MB, free: 9.293 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.5118, allocations: 314.8 kB / 443.7 MB, free: 8.977 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.787e-05/0.5119, allocations: 16 kB / 443.7 MB, free: 8.961 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.765e-05/0.512, allocations: 29.72 kB / 443.7 MB, free: 8.926 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.961e-05/0.5121, allocations: 24.02 kB / 443.8 MB, free: 8.902 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5121, allocations: 0 / 443.8 MB, free: 8.902 MB / 378.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002178/0.5123, allocations: 73.75 kB / 443.8 MB, free: 8.824 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.587e-05/0.5124, allocations: 43 kB / 443.9 MB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.5124, allocations: 0 / 443.9 MB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.5124, allocations: 3.938 kB / 443.9 MB, free: 8.773 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002186/0.5126, allocations: 23.98 kB / 443.9 MB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.5127, allocations: 3.938 kB / 443.9 MB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.5128, allocations: 15.98 kB / 443.9 MB, free: 8.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.532e-05/0.5128, allocations: 4 kB / 443.9 MB, free: 8.727 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 (8): * Single equations (assignments): 7 * 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.506e-05/0.5129, allocations: 107 kB / 444 MB, free: 8.617 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001793/0.5131, allocations: 69.59 kB / 444.1 MB, free: 8.543 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.508e-05/0.5132, allocations: 11.86 kB / 444.1 MB, free: 8.531 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002311/0.5134, allocations: 86.61 kB / 444.2 MB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.5134, allocations: 4 kB / 444.2 MB, free: 8.434 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.5134, allocations: 4 kB / 444.2 MB, free: 8.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.5134, allocations: 0 / 444.2 MB, free: 8.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006433/0.5141, allocations: 319.1 kB / 444.5 MB, free: 8.074 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.5141, allocations: 3.938 kB / 444.5 MB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001742/0.5143, allocations: 23.98 kB / 444.5 MB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.5143, allocations: 0 / 444.5 MB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.5143, allocations: 0 / 444.5 MB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.743e-06/0.5144, allocations: 4 kB / 444.5 MB, free: 8.043 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5144, allocations: 4 kB / 444.5 MB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002155/0.5146, allocations: 171.4 kB / 444.7 MB, free: 7.855 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.041e-05/0.5147, allocations: 81.11 kB / 444.8 MB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.835e-05/0.5147, allocations: 3.984 kB / 444.8 MB, free: 7.754 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.5149, allocations: 12 kB / 444.8 MB, free: 7.742 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.594e-05/0.5149, allocations: 3.984 kB / 444.8 MB, free: 7.738 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.515, allocations: 12 kB / 444.8 MB, free: 7.727 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.739e-05/0.515, allocations: 91.27 kB / 444.9 MB, free: 7.637 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5151, allocations: 0 / 444.9 MB, free: 7.637 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003814/0.5154, allocations: 28 kB / 444.9 MB, free: 7.609 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 (7): * Single equations (assignments): 7 * 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.001542/0.517, allocations: 0.9239 MB / 445.9 MB, free: 6.707 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002507/0.5173, allocations: 107.3 kB / 446 MB, free: 6.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.5173, allocations: 0 / 446 MB, free: 6.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.324e-05/0.5174, allocations: 24.16 kB / 446 MB, free: 6.566 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003035/0.5177, allocations: 8.078 kB / 446 MB, free: 6.559 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006514/0.5184, allocations: 191 kB / 446.2 MB, free: 6.328 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/0.5188, allocations: 0.6931 MB / 446.9 MB, free: 5.609 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.5189, allocations: 31.42 kB / 446.9 MB, free: 5.578 MB / 378.7 MB Notification: Performance of SimCode: time 9.22e-07/0.5189, allocations: 0 / 446.9 MB, free: 5.578 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_CombiTable2D_Test12CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp26; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12InitializeParameter.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_v7.mat", tmp26); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp12; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12Initialize.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_v7.mat", tmp12); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12Initialize.cpp:292:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12Initialize.cpp:293:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp21); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12.cpp:756:24: error: use of undeclared identifier 'tmp6' _t_new_P_fileName_ = tmp6; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12FMU.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_Test12CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.o] Error 1