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.Test18.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.CombiTable1D.Test18,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.189/2.189, allocations: 234.9 MB / 250.5 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004314/0.0004314, allocations: 12 kB / 314.4 MB, free: 10.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3267, allocations: 54.87 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1D.Test18): time 0.002218/0.329, allocations: 1.235 MB / 370.5 MB, free: 9.473 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001511/0.3305, allocations: 0.8374 MB / 371.4 MB, free: 8.629 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.394e-05/0.3306, allocations: 0 / 371.4 MB, free: 8.629 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002009/0.3308, allocations: 19.91 kB / 371.4 MB, free: 8.609 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001488/0.331, allocations: 23.97 kB / 371.4 MB, free: 8.586 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001409/0.3311, allocations: 35.84 kB / 371.4 MB, free: 8.551 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.3313, allocations: 47.89 kB / 371.5 MB, free: 8.504 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.797e-05/0.3314, allocations: 19.98 kB / 371.5 MB, free: 8.484 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.737e-05/0.3315, allocations: 23.91 kB / 371.5 MB, free: 8.461 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000167/0.3316, allocations: 23.92 kB / 371.5 MB, free: 8.438 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.538e-05/0.3317, allocations: 0 / 371.5 MB, free: 8.438 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.3318, allocations: 35.91 kB / 371.6 MB, free: 8.402 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.94e-05/0.3318, allocations: 15.92 kB / 371.6 MB, free: 8.387 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.293e-05/0.3319, allocations: 29.7 kB / 371.6 MB, free: 8.352 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001707/0.3321, allocations: 71.89 kB / 371.7 MB, free: 8.281 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.3321, allocations: 0 / 371.7 MB, free: 8.281 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3321, allocations: 0 / 371.7 MB, free: 8.281 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.3321, allocations: 7.938 kB / 371.7 MB, free: 8.273 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005199/0.3326, allocations: 397.8 kB / 372.1 MB, free: 7.832 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.3327, allocations: 15.97 kB / 372.1 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.024e-05/0.3327, allocations: 34.56 kB / 372.1 MB, free: 7.773 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.804e-05/0.3328, allocations: 15.84 kB / 372.2 MB, free: 7.758 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.333, allocations: 183 kB / 372.3 MB, free: 7.539 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.333, allocations: 0 / 372.3 MB, free: 7.539 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.703e-05/0.3331, allocations: 4 kB / 372.3 MB, free: 7.535 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000234/0.3333, allocations: 96.17 kB / 372.4 MB, free: 7.426 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.3333, allocations: 3.906 kB / 372.4 MB, free: 7.422 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.3334, allocations: 4 kB / 372.4 MB, free: 7.418 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.3334, allocations: 3.953 kB / 372.4 MB, free: 7.414 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.3336, allocations: 35.97 kB / 372.5 MB, free: 7.379 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005588/0.3341, allocations: 389.1 kB / 372.9 MB, free: 6.945 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003634/0.3345, allocations: 93.16 kB / 372.9 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.3346, allocations: 0 / 372.9 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.3346, allocations: 42.52 kB / 373 MB, free: 6.785 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.372e-06/0.3346, allocations: 0 / 373 MB, free: 6.785 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.001079/0.3357, allocations: 249.1 kB / 373.2 MB, free: 6.535 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.464e-05/0.3358, allocations: 102.8 kB / 373.3 MB, free: 6.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001553/0.3359, allocations: 133.8 kB / 373.5 MB, free: 6.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.336, allocations: 25.7 kB / 373.5 MB, free: 6.238 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.187e-05/0.3361, allocations: 158.6 kB / 373.6 MB, free: 6.082 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.633e-05/0.3361, allocations: 39.44 kB / 373.7 MB, free: 6.043 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.425e-06/0.3361, allocations: 0 / 373.7 MB, free: 6.043 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3363, allocations: 322.8 kB / 374 MB, free: 5.719 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.3364, allocations: 39.92 kB / 374 MB, free: 5.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.3366, allocations: 57.69 kB / 374.1 MB, free: 5.617 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001977/0.3368, allocations: 73.67 kB / 374.2 MB, free: 5.539 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3369, allocations: 0 / 374.2 MB, free: 5.539 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004367/0.3373, allocations: 159.8 kB / 374.3 MB, free: 5.371 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.43e-05/0.3373, allocations: 33.73 kB / 374.4 MB, free: 5.332 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3374, allocations: 7.984 kB / 374.4 MB, free: 5.324 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.3374, allocations: 3.938 kB / 374.4 MB, free: 5.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.3375, allocations: 19.98 kB / 374.4 MB, free: 5.301 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.3376, allocations: 7.984 kB / 374.4 MB, free: 5.293 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.987e-05/0.3377, allocations: 7.938 kB / 374.4 MB, free: 5.285 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.3377, allocations: 4 kB / 374.4 MB, free: 5.281 MB / 298.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 (11): * Single equations (assignments): 10 * 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.0001199/0.3378, allocations: 125.8 kB / 374.5 MB, free: 5.148 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.151e-05/0.3379, allocations: 15.8 kB / 374.5 MB, free: 5.133 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004994/0.3384, allocations: 153.5 kB / 374.7 MB, free: 4.977 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.3384, allocations: 4 kB / 374.7 MB, free: 4.973 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.3384, allocations: 0 / 374.7 MB, free: 4.973 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.3384, allocations: 7.938 kB / 374.7 MB, free: 4.965 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008786/0.3393, allocations: 0.4908 MB / 375.2 MB, free: 4.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3394, allocations: 0 / 375.2 MB, free: 4.414 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001518/0.3395, allocations: 28.02 kB / 375.2 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-06/0.3395, allocations: 0 / 375.2 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.3396, allocations: 8 kB / 375.2 MB, free: 4.379 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.042e-06/0.3396, allocations: 3.984 kB / 375.2 MB, free: 4.375 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3396, allocations: 3.938 kB / 375.2 MB, free: 4.371 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004655/0.3401, allocations: 307.5 kB / 375.5 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.402e-05/0.3401, allocations: 89.31 kB / 375.6 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.755e-05/0.3402, allocations: 4 kB / 375.6 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.3403, allocations: 12 kB / 375.6 MB, free: 3.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.779e-05/0.3404, allocations: 7.984 kB / 375.6 MB, free: 3.922 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.3404, allocations: 8 kB / 375.7 MB, free: 3.914 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.667e-05/0.3405, allocations: 104 kB / 375.8 MB, free: 3.812 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3405, allocations: 0 / 375.8 MB, free: 3.812 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003881/0.3409, allocations: 31.98 kB / 375.8 MB, free: 3.781 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (10): * Single equations (assignments): 10 * 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.001688/0.3426, allocations: 1.131 MB / 376.9 MB, free: 2.703 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004321/0.3431, allocations: 143.3 kB / 377.1 MB, free: 2.551 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3431, allocations: 0 / 377.1 MB, free: 2.551 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000192/0.3433, allocations: 59.97 kB / 377.1 MB, free: 2.492 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.3436, allocations: 15.92 kB / 377.1 MB, free: 2.477 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009046/0.3445, allocations: 478.3 kB / 377.6 MB, free: 1.949 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.3448, allocations: 0.6965 MB / 378.3 MB, free: 1.227 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.898e-05/0.3449, allocations: 31.42 kB / 378.3 MB, free: 1.195 MB / 298.7 MB Notification: Performance of SimCode: time 6.41e-07/0.345, allocations: 0 / 378.3 MB, free: 1.195 MB / 298.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=5 -DSUNDIALS_MINOR_VERSION=4 -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_CombiTable1D_Test18CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18InitializeParameter.cpp:36:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp25; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18InitializeParameter.cpp:37: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.txt", tmp25); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp11; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18Initialize.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.txt", tmp11); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18Initialize.cpp:315:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp20; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18Initialize.cpp:316:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp20); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18.cpp:765:24: error: use of undeclared identifier 'tmp6' _t_new_P_fileName_ = tmp6; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18FMU.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_CombiTable1D_Test18CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test18CalcHelperMain.o] Error 1