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/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.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.281/2.281, allocations: 234.9 MB / 250.5 MB, free: 10.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000437/0.0004372, allocations: 15.98 kB / 314.4 MB, free: 10.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3397, allocations: 54.88 MB / 369.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable2D.Test12): time 0.002383/0.3421, allocations: 1.238 MB / 370.5 MB, free: 9.586 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.3438, allocations: 0.8491 MB / 371.4 MB, free: 8.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.011e-05/0.3439, allocations: 4 kB / 371.4 MB, free: 8.727 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001742/0.3441, allocations: 7.984 kB / 371.4 MB, free: 8.719 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001869/0.3443, allocations: 31.84 kB / 371.4 MB, free: 8.688 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001423/0.3444, allocations: 27.91 kB / 371.4 MB, free: 8.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001233/0.3446, allocations: 35.95 kB / 371.5 MB, free: 8.625 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.3447, allocations: 15.98 kB / 371.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.869e-05/0.3448, allocations: 19.92 kB / 371.5 MB, free: 8.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/0.345, allocations: 31.84 kB / 371.5 MB, free: 8.559 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.498e-05/0.345, allocations: 0 / 371.5 MB, free: 8.559 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000126/0.3452, allocations: 35.92 kB / 371.6 MB, free: 8.523 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.315e-05/0.3452, allocations: 4 kB / 371.6 MB, free: 8.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.986e-05/0.3452, allocations: 33.64 kB / 371.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.3454, allocations: 63.89 kB / 371.7 MB, free: 8.418 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.3454, allocations: 0 / 371.7 MB, free: 8.418 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3455, allocations: 0 / 371.7 MB, free: 8.418 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.3455, allocations: 0 / 371.7 MB, free: 8.418 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.0006348/0.3461, allocations: 409.8 kB / 372.1 MB, free: 7.965 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.3462, allocations: 8.031 kB / 372.1 MB, free: 7.957 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.21e-05/0.3462, allocations: 34.56 kB / 372.1 MB, free: 7.914 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.736e-05/0.3463, allocations: 11.86 kB / 372.1 MB, free: 7.902 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002266/0.3465, allocations: 182.9 kB / 372.3 MB, free: 7.684 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.3465, allocations: 4 kB / 372.3 MB, free: 7.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.212e-05/0.3466, allocations: 8 kB / 372.3 MB, free: 7.672 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002658/0.3469, allocations: 79.33 kB / 372.4 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.3469, allocations: 0 / 372.4 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.3469, allocations: 4 kB / 372.4 MB, free: 7.578 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.3469, allocations: 3.953 kB / 372.4 MB, free: 7.574 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002446/0.3472, allocations: 39.97 kB / 372.4 MB, free: 7.535 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004684/0.3477, allocations: 292.7 kB / 372.7 MB, free: 7.199 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001931/0.3479, allocations: 46.56 kB / 372.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.3479, allocations: 0 / 372.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.348, allocations: 38.52 kB / 372.8 MB, free: 7.098 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.843e-06/0.348, allocations: 4 kB / 372.8 MB, free: 7.094 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.001297/0.3493, allocations: 233.4 kB / 373 MB, free: 6.859 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.507e-05/0.3494, allocations: 81.11 kB / 373.1 MB, free: 6.762 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.3495, allocations: 125.8 kB / 373.2 MB, free: 6.629 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/0.3496, allocations: 25.7 kB / 373.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.695e-05/0.3497, allocations: 158.6 kB / 373.4 MB, free: 6.441 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.638e-05/0.3497, allocations: 27.56 kB / 373.5 MB, free: 6.414 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.294e-06/0.3497, allocations: 0 / 373.5 MB, free: 6.414 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3499, allocations: 314.8 kB / 373.8 MB, free: 6.098 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002362/0.3501, allocations: 47.97 kB / 373.8 MB, free: 6.051 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002396/0.3504, allocations: 57.62 kB / 373.9 MB, free: 5.988 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002577/0.3507, allocations: 73.78 kB / 373.9 MB, free: 5.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.393e-06/0.3507, allocations: 4 kB / 373.9 MB, free: 5.906 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005719/0.3513, allocations: 163.2 kB / 374.1 MB, free: 5.734 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.892e-05/0.3513, allocations: 33.7 kB / 374.1 MB, free: 5.695 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3513, allocations: 288 / 374.1 MB, free: 5.695 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.3514, allocations: 0 / 374.1 MB, free: 5.695 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.3516, allocations: 27.98 kB / 374.2 MB, free: 5.668 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.3516, allocations: 0 / 374.2 MB, free: 5.668 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.3517, allocations: 15.98 kB / 374.2 MB, free: 5.652 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.3518, allocations: 4 kB / 374.2 MB, free: 5.648 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.0001167/0.3519, allocations: 117.8 kB / 374.3 MB, free: 5.523 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.683e-05/0.352, allocations: 15.84 kB / 374.3 MB, free: 5.508 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005869/0.3525, allocations: 138 kB / 374.4 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.3526, allocations: 0 / 374.4 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.3526, allocations: 0 / 374.4 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.3526, allocations: 0 / 374.4 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008954/0.3535, allocations: 402.4 kB / 374.8 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.3535, allocations: 3.938 kB / 374.8 MB, free: 4.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/0.3537, allocations: 27.98 kB / 374.9 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.932e-06/0.3537, allocations: 0 / 374.9 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.3538, allocations: 4 kB / 374.9 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.3538, allocations: 4 kB / 374.9 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3538, allocations: 0 / 374.9 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000567/0.3544, allocations: 227.8 kB / 375.1 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.485e-05/0.3544, allocations: 81.06 kB / 375.2 MB, free: 4.539 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.3545, allocations: 4 kB / 375.2 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.3546, allocations: 19.98 kB / 375.2 MB, free: 4.516 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.249e-05/0.3547, allocations: 11.97 kB / 375.2 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.3547, allocations: 0 / 375.2 MB, free: 4.504 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.165e-05/0.3548, allocations: 95.27 kB / 375.3 MB, free: 4.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3548, allocations: 0 / 375.3 MB, free: 4.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003526/0.3552, allocations: 24 kB / 375.3 MB, free: 4.387 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.001865/0.3571, allocations: 1.047 MB / 376.4 MB, free: 3.398 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005615/0.3577, allocations: 155.3 kB / 376.5 MB, free: 3.234 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3577, allocations: 0 / 376.5 MB, free: 3.234 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002402/0.3579, allocations: 55.97 kB / 376.6 MB, free: 3.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.3582, allocations: 11.92 kB / 376.6 MB, free: 3.168 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008063/0.359, allocations: 416.2 kB / 377 MB, free: 2.707 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002692/0.3593, allocations: 0.6926 MB / 377.7 MB, free: 1.988 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.3594, allocations: 27.42 kB / 377.7 MB, free: 1.961 MB / 298.7 MB Notification: Performance of SimCode: time 8.32e-07/0.3595, allocations: 0 / 377.7 MB, free: 1.961 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_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/OpenModelica/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/OpenModelica/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/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_Test12CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.o] Error 1