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.Test10.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.Test10,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test10",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.211/2.211, allocations: 234.9 MB / 250.5 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004301/0.0004303, allocations: 8 kB / 314.4 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3355, allocations: 54.87 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable2D.Test10): time 0.003027/0.3386, allocations: 1.246 MB / 370.5 MB, free: 9.457 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002058/0.3406, allocations: 0.8375 MB / 371.4 MB, free: 8.613 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.46e-05/0.3407, allocations: 0 / 371.4 MB, free: 8.613 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001976/0.3409, allocations: 15.91 kB / 371.4 MB, free: 8.598 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000211/0.3412, allocations: 27.91 kB / 371.4 MB, free: 8.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000172/0.3414, allocations: 35.91 kB / 371.4 MB, free: 8.535 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001541/0.3415, allocations: 39.89 kB / 371.5 MB, free: 8.496 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.3417, allocations: 8 kB / 371.5 MB, free: 8.488 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.025e-05/0.3417, allocations: 23.91 kB / 371.5 MB, free: 8.465 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002041/0.342, allocations: 19.92 kB / 371.5 MB, free: 8.445 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.582e-05/0.342, allocations: 4 kB / 371.5 MB, free: 8.441 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001507/0.3422, allocations: 35.91 kB / 371.6 MB, free: 8.406 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.071e-05/0.3422, allocations: 11.92 kB / 371.6 MB, free: 8.395 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.46e-05/0.3423, allocations: 29.7 kB / 371.6 MB, free: 8.359 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.3425, allocations: 63.91 kB / 371.7 MB, free: 8.297 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.3425, allocations: 0 / 371.7 MB, free: 8.297 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3425, allocations: 4 kB / 371.7 MB, free: 8.293 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.3426, allocations: 0 / 371.7 MB, free: 8.293 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007018/0.3433, allocations: 405.8 kB / 372.1 MB, free: 7.844 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.3433, allocations: 8.031 kB / 372.1 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.698e-05/0.3434, allocations: 34.5 kB / 372.1 MB, free: 7.793 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.761e-05/0.3435, allocations: 11.86 kB / 372.1 MB, free: 7.781 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.3437, allocations: 186.9 kB / 372.3 MB, free: 7.559 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.3438, allocations: 7.984 kB / 372.3 MB, free: 7.551 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.609e-05/0.3438, allocations: 4 kB / 372.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/0.3441, allocations: 79.38 kB / 372.4 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.3442, allocations: 0 / 372.4 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.3442, allocations: 0 / 372.4 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.3442, allocations: 11.95 kB / 372.4 MB, free: 7.445 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003366/0.3446, allocations: 43.91 kB / 372.4 MB, free: 7.402 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005563/0.3451, allocations: 280.8 kB / 372.7 MB, free: 7.078 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002307/0.3454, allocations: 50.56 kB / 372.8 MB, free: 7.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.229e-05/0.3454, allocations: 4 kB / 372.8 MB, free: 7.016 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.3455, allocations: 38.45 kB / 372.8 MB, free: 6.969 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.954e-06/0.3455, allocations: 0 / 372.8 MB, free: 6.969 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.001578/0.3471, allocations: 237.5 kB / 373 MB, free: 6.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.515e-05/0.3472, allocations: 81.09 kB / 373.1 MB, free: 6.633 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001797/0.3474, allocations: 121.8 kB / 373.2 MB, free: 6.504 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.3474, allocations: 25.7 kB / 373.3 MB, free: 6.473 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.903e-05/0.3475, allocations: 158.5 kB / 373.4 MB, free: 6.316 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.366e-05/0.3476, allocations: 31.56 kB / 373.5 MB, free: 6.285 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.296e-05/0.3476, allocations: 0 / 373.5 MB, free: 6.285 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.3478, allocations: 314.8 kB / 373.8 MB, free: 5.969 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003011/0.3481, allocations: 43.97 kB / 373.8 MB, free: 5.922 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000332/0.3485, allocations: 61.69 kB / 373.9 MB, free: 5.855 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003244/0.3488, allocations: 69.67 kB / 373.9 MB, free: 5.781 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3488, allocations: 4.031 kB / 373.9 MB, free: 5.777 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007394/0.3496, allocations: 159.2 kB / 374.1 MB, free: 5.609 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.447e-05/0.3497, allocations: 35.42 kB / 374.1 MB, free: 5.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3497, allocations: 4 kB / 374.1 MB, free: 5.566 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.3497, allocations: 3.984 kB / 374.1 MB, free: 5.562 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002544/0.35, allocations: 23.98 kB / 374.2 MB, free: 5.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.515e-06/0.35, allocations: 0 / 374.2 MB, free: 5.539 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.3502, allocations: 15.98 kB / 374.2 MB, free: 5.523 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/0.3502, allocations: 0 / 374.2 MB, free: 5.523 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 (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.0001352/0.3504, allocations: 117.8 kB / 374.3 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.061e-05/0.3505, allocations: 11.86 kB / 374.3 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007549/0.3512, allocations: 145.9 kB / 374.4 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.3512, allocations: 0 / 374.4 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3513, allocations: 0 / 374.4 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.3513, allocations: 288 / 374.4 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.3524, allocations: 402.5 kB / 374.8 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3525, allocations: 0 / 374.8 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002271/0.3527, allocations: 31.86 kB / 374.9 MB, free: 4.754 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.448e-06/0.3527, allocations: 7.984 kB / 374.9 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.3528, allocations: 0 / 374.9 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.3528, allocations: 4.469 kB / 374.9 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3528, allocations: 0 / 374.9 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007351/0.3535, allocations: 223.4 kB / 375.1 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.792e-05/0.3536, allocations: 89.05 kB / 375.2 MB, free: 4.402 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.371e-05/0.3537, allocations: 0 / 375.2 MB, free: 4.402 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002328/0.3539, allocations: 15.98 kB / 375.2 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.288e-05/0.354, allocations: 4 kB / 375.2 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.354, allocations: 4 kB / 375.2 MB, free: 4.379 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001223/0.3542, allocations: 99.2 kB / 375.3 MB, free: 4.281 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3542, allocations: 0 / 375.3 MB, free: 4.281 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006179/0.3548, allocations: 31.98 kB / 375.3 MB, free: 4.25 MB / 298.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.002537/0.3574, allocations: 1.04 MB / 376.4 MB, free: 3.266 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007219/0.3581, allocations: 155.3 kB / 376.5 MB, free: 3.102 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.3581, allocations: 0 / 376.5 MB, free: 3.102 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003102/0.3585, allocations: 51.91 kB / 376.6 MB, free: 3.051 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003699/0.3589, allocations: 4 kB / 376.6 MB, free: 3.047 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.36, allocations: 428.2 kB / 377 MB, free: 2.574 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.3604, allocations: 0.6965 MB / 377.7 MB, free: 1.852 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.3605, allocations: 23.42 kB / 377.7 MB, free: 1.828 MB / 298.7 MB Notification: Performance of SimCode: time 8.01e-07/0.3606, allocations: 4 kB / 377.7 MB, free: 1.824 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_CombiTable2D_Test10CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test10CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test10CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test10InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp26; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test10InitializeParameter.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_v4.mat", tmp26); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test10CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test10Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp12; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test10Initialize.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_v4.mat", tmp12); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test10Initialize.cpp:292:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test10Initialize.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_Test10CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test10.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_Test10CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test10FMU.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_Test10CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test10CalcHelperMain.o] Error 1