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.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.CombiTable1D.Test19,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.387/2.387, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.74e-05/4.767e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3889/0.389, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1501/0.5392, allocations: 80.47 MB / 438.6 MB, free: 14.28 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.5396, allocations: 71.89 kB / 438.7 MB, free: 14.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01368/0.5533, allocations: 3.215 MB / 441.9 MB, free: 10.99 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5533, allocations: 0 / 441.9 MB, free: 10.99 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.5534, allocations: 4 kB / 441.9 MB, free: 10.98 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.0004862/0.5539, allocations: 396.1 kB / 442.3 MB, free: 10.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.5539, allocations: 8.031 kB / 442.3 MB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.937e-05/0.554, allocations: 11.86 kB / 442.3 MB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002446/0.5542, allocations: 179 kB / 442.5 MB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.5543, allocations: 0 / 442.5 MB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.5543, allocations: 7.938 kB / 442.5 MB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.824e-05/0.5544, allocations: 12 kB / 442.5 MB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.5545, allocations: 57.47 kB / 442.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.5546, allocations: 3.906 kB / 442.5 MB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.5546, allocations: 0 / 442.5 MB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.5546, allocations: 3.953 kB / 442.5 MB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004395/0.555, allocations: 257.5 kB / 442.8 MB, free: 9.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002196/0.5553, allocations: 46.5 kB / 442.8 MB, free: 9.875 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.484e-05/0.5553, allocations: 8.859 kB / 442.9 MB, free: 9.863 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.5554, allocations: 4 kB / 442.9 MB, free: 9.859 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.5554, allocations: 30.56 kB / 442.9 MB, free: 9.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 2.044e-06/0.5554, allocations: 4 kB / 442.9 MB, free: 9.816 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005229/0.5559, allocations: 109.4 kB / 443 MB, free: 9.703 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.556, allocations: 81.11 kB / 443.1 MB, free: 9.605 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.5562, allocations: 113 kB / 443.2 MB, free: 9.488 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.5562, allocations: 25.7 kB / 443.2 MB, free: 9.457 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.347e-05/0.5563, allocations: 154.6 kB / 443.4 MB, free: 9.305 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.755e-05/0.5563, allocations: 15.75 kB / 443.4 MB, free: 9.289 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-06/0.5563, allocations: 0 / 443.4 MB, free: 9.289 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.5565, allocations: 318.8 kB / 443.7 MB, free: 8.969 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.664e-05/0.5566, allocations: 12 kB / 443.7 MB, free: 8.957 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.267e-05/0.5566, allocations: 29.72 kB / 443.7 MB, free: 8.922 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.336e-05/0.5567, allocations: 23.92 kB / 443.8 MB, free: 8.898 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.5567, allocations: 0 / 443.8 MB, free: 8.898 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001851/0.5569, allocations: 73.72 kB / 443.8 MB, free: 8.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.569e-05/0.557, allocations: 34.89 kB / 443.9 MB, free: 8.781 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.557, allocations: 64 / 443.9 MB, free: 8.781 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.299e-05/0.557, allocations: 11.98 kB / 443.9 MB, free: 8.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.5572, allocations: 11.95 kB / 443.9 MB, free: 8.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.5572, allocations: 7.984 kB / 443.9 MB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.563e-05/0.5573, allocations: 12.02 kB / 443.9 MB, free: 8.738 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.5573, allocations: 144 / 443.9 MB, free: 8.738 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 8.452e-05/0.5574, allocations: 107 kB / 444 MB, free: 8.629 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001587/0.5576, allocations: 57.69 kB / 444.1 MB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.049e-05/0.5576, allocations: 11.89 kB / 444.1 MB, free: 8.555 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00022/0.5579, allocations: 85.97 kB / 444.2 MB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.5579, allocations: 0 / 444.2 MB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.5579, allocations: 4 kB / 444.2 MB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.5579, allocations: 0 / 444.2 MB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004443/0.5584, allocations: 299.2 kB / 444.5 MB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.5584, allocations: 0 / 444.5 MB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.5585, allocations: 19.92 kB / 444.5 MB, free: 8.109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.5585, allocations: 3.953 kB / 444.5 MB, free: 8.105 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.5585, allocations: 4 kB / 444.5 MB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.5586, allocations: 0 / 444.5 MB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.5586, allocations: 0 / 444.5 MB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001992/0.5588, allocations: 163.7 kB / 444.6 MB, free: 7.926 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.533e-05/0.5588, allocations: 89 kB / 444.7 MB, free: 7.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.663e-05/0.5589, allocations: 7.953 kB / 444.7 MB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.559, allocations: 4 kB / 444.7 MB, free: 7.809 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.834e-05/0.5591, allocations: 7.984 kB / 444.7 MB, free: 7.801 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.735e-06/0.5591, allocations: 0 / 444.7 MB, free: 7.801 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.269e-05/0.5592, allocations: 99.28 kB / 444.8 MB, free: 7.703 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5592, allocations: 0 / 444.8 MB, free: 7.703 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003707/0.5596, allocations: 27.92 kB / 444.9 MB, free: 7.676 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.00143/0.561, allocations: 0.9112 MB / 445.8 MB, free: 6.785 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002522/0.5613, allocations: 91.39 kB / 445.9 MB, free: 6.684 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.5613, allocations: 3.938 kB / 445.9 MB, free: 6.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.683e-05/0.5614, allocations: 23.94 kB / 445.9 MB, free: 6.656 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.5617, allocations: 11.95 kB / 445.9 MB, free: 6.645 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006907/0.5624, allocations: 179.2 kB / 446.1 MB, free: 6.422 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.5628, allocations: 0.6924 MB / 446.8 MB, free: 5.703 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.896e-05/0.5629, allocations: 19.42 kB / 446.8 MB, free: 5.684 MB / 378.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5629, allocations: 0 / 446.8 MB, free: 5.684 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_CombiTable1D_Test19CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp22; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_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_CombiTable1D_Test19CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_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_CombiTable1D_Test19Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_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_CombiTable1D_Test19CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19.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_Test19CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_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_CombiTable1D_Test19CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.o] Error 1