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.Test11.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.CombiTable2D.Test11,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test11",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.493/2.493, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006308/0.0006306, allocations: 11.98 kB / 314.5 MB, free: 9.457 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3877/0.3884, allocations: 54.86 MB / 369.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1509/0.5393, allocations: 81.22 MB / 450.6 MB, free: 9.273 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/0.5397, allocations: 75.95 kB / 450.6 MB, free: 9.199 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01378/0.5535, allocations: 3.476 MB / 454.1 MB, free: 5.715 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.5536, allocations: 4 kB / 454.1 MB, free: 5.711 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.5536, allocations: 0 / 454.1 MB, free: 5.711 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.0006076/0.5542, allocations: 424.7 kB / 454.5 MB, free: 5.242 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.5543, allocations: 8.031 kB / 454.6 MB, free: 5.234 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.455e-05/0.5543, allocations: 42.45 kB / 454.6 MB, free: 5.184 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.102e-05/0.5544, allocations: 7.906 kB / 454.6 MB, free: 5.176 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002373/0.5546, allocations: 175.1 kB / 454.8 MB, free: 4.965 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.5547, allocations: 3.984 kB / 454.8 MB, free: 4.961 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.844e-05/0.5547, allocations: 4 kB / 454.8 MB, free: 4.957 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.555, allocations: 75.39 kB / 454.9 MB, free: 4.871 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.555, allocations: 4 kB / 454.9 MB, free: 4.867 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.555, allocations: 3.953 kB / 454.9 MB, free: 4.863 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.555, allocations: 4 kB / 454.9 MB, free: 4.859 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002433/0.5553, allocations: 51.89 kB / 454.9 MB, free: 4.809 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004514/0.5558, allocations: 276.8 kB / 455.2 MB, free: 4.488 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001849/0.556, allocations: 50.55 kB / 455.2 MB, free: 4.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.735e-05/0.556, allocations: 3.953 kB / 455.2 MB, free: 4.426 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.556, allocations: 38.5 kB / 455.3 MB, free: 4.379 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 1.884e-06/0.5561, allocations: 0 / 455.3 MB, free: 4.379 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.001257/0.5573, allocations: 241.3 kB / 455.5 MB, free: 4.137 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/0.5574, allocations: 77.11 kB / 455.6 MB, free: 4.043 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.5575, allocations: 120.9 kB / 455.7 MB, free: 3.918 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.5576, allocations: 25.7 kB / 455.7 MB, free: 3.887 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.478e-05/0.5577, allocations: 158.5 kB / 455.9 MB, free: 3.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.811e-05/0.5577, allocations: 31.7 kB / 455.9 MB, free: 3.699 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.534e-06/0.5577, allocations: 0 / 455.9 MB, free: 3.699 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.5579, allocations: 310.8 kB / 456.2 MB, free: 3.387 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002239/0.5581, allocations: 47.97 kB / 456.3 MB, free: 3.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002416/0.5584, allocations: 57.69 kB / 456.3 MB, free: 3.277 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002617/0.5586, allocations: 73.7 kB / 456.4 MB, free: 3.199 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.5587, allocations: 0 / 456.4 MB, free: 3.199 MB / 378.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005568/0.5592, allocations: 167.2 kB / 456.6 MB, free: 3.023 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.108e-05/0.5593, allocations: 29.7 kB / 456.6 MB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.5593, allocations: 0 / 456.6 MB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.5593, allocations: 0 / 456.6 MB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002096/0.5595, allocations: 27.98 kB / 456.6 MB, free: 2.961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.5596, allocations: 0 / 456.6 MB, free: 2.961 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.5597, allocations: 19.98 kB / 456.6 MB, free: 2.941 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.5597, allocations: 0 / 456.6 MB, free: 2.941 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 () * Number of clocked 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 0.0001174/0.5599, allocations: 113.8 kB / 456.7 MB, free: 2.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.59e-05/0.5599, allocations: 11.86 kB / 456.8 MB, free: 2.809 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000568/0.5605, allocations: 146.2 kB / 456.9 MB, free: 2.664 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.5605, allocations: 0 / 456.9 MB, free: 2.664 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.5605, allocations: 0 / 456.9 MB, free: 2.664 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.455e-06/0.5605, allocations: 3.984 kB / 456.9 MB, free: 2.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009032/0.5614, allocations: 398.5 kB / 457.3 MB, free: 2.215 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.5615, allocations: 0 / 457.3 MB, free: 2.215 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001709/0.5616, allocations: 27.92 kB / 457.3 MB, free: 2.188 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.5617, allocations: 0 / 457.3 MB, free: 2.188 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.5617, allocations: 11.98 kB / 457.3 MB, free: 2.176 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.5617, allocations: 0 / 457.3 MB, free: 2.176 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.5617, allocations: 0 / 457.3 MB, free: 2.176 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005831/0.5623, allocations: 227.3 kB / 457.6 MB, free: 1.938 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.514e-05/0.5624, allocations: 85.02 kB / 457.6 MB, free: 1.836 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.432e-05/0.5624, allocations: 0 / 457.6 MB, free: 1.836 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.5626, allocations: 15.98 kB / 457.7 MB, free: 1.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.05e-05/0.5627, allocations: 11.98 kB / 457.7 MB, free: 1.809 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.5627, allocations: 4 kB / 457.7 MB, free: 1.805 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.769e-05/0.5628, allocations: 95.64 kB / 457.8 MB, free: 1.711 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5628, allocations: 0 / 457.8 MB, free: 1.711 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003828/0.5632, allocations: 39.88 kB / 457.8 MB, free: 1.672 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 () * Number of clocked 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.002043/0.5653, allocations: 1.038 MB / 458.8 MB, free: 0.6797 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00057/0.5659, allocations: 159.3 kB / 459 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.5659, allocations: 0 / 459 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002311/0.5661, allocations: 47.91 kB / 459 MB, free: 476 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.5664, allocations: 23.88 kB / 459.1 MB, free: 452 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009025/0.5673, allocations: 432 kB / 459.5 MB, free: 15.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.5676, allocations: 0.6965 MB / 460.2 MB, free: 15.24 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.917e-05/0.5677, allocations: 23.44 kB / 460.2 MB, free: 15.22 MB / 394.7 MB Notification: Performance of SimCode: time 7.21e-07/0.5678, allocations: 0 / 460.2 MB, free: 15.22 MB / 394.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=6 -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_CombiTable2D_Test11CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test11CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test11CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test11InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp26; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test11InitializeParameter.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_v6.mat", tmp26); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test11CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test11Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp12; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test11Initialize.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_v6.mat", tmp12); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test11Initialize.cpp:292:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test11Initialize.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_Test11CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test11.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_Test11CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test11FMU.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_CombiTable2D_Test11CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test11CalcHelperMain.o] Error 1