Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1Ds.Test20.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Ds.Test20,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.153/2.153, allocations: 209.2 MB / 224.8 MB, free: 0.5391 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005947/0.0005948, allocations: 12 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.3565, allocations: 48.71 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1Ds.Test20): time 0.002267/0.3588, allocations: 1.203 MB / 332.5 MB, free: 5.922 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.3603, allocations: 0.8194 MB / 333.3 MB, free: 5.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.552e-05/0.3605, allocations: 3.938 kB / 333.3 MB, free: 5.336 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002368/0.3607, allocations: 12.23 kB / 333.3 MB, free: 5.332 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002088/0.3609, allocations: 29.27 kB / 333.3 MB, free: 5.316 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001707/0.3611, allocations: 34.72 kB / 333.4 MB, free: 5.297 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001339/0.3613, allocations: 38.7 kB / 333.4 MB, free: 5.277 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.3614, allocations: 10.95 kB / 333.4 MB, free: 5.273 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.673e-05/0.3614, allocations: 21.58 kB / 333.5 MB, free: 5.262 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001763/0.3616, allocations: 20.2 kB / 333.5 MB, free: 5.254 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.738e-05/0.3617, allocations: 1.062 kB / 333.5 MB, free: 5.254 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001378/0.3618, allocations: 36.08 kB / 333.5 MB, free: 5.242 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.024e-05/0.3619, allocations: 12.89 kB / 333.5 MB, free: 5.234 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.97e-05/0.3619, allocations: 27.92 kB / 333.5 MB, free: 5.203 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001826/0.3621, allocations: 63.78 kB / 333.6 MB, free: 5.188 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.3621, allocations: 0 / 333.6 MB, free: 5.188 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3621, allocations: 0 / 333.6 MB, free: 5.188 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.3621, allocations: 5.062 kB / 333.6 MB, free: 5.184 MB / 266.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.0005008/0.3627, allocations: 391.8 kB / 334 MB, free: 4.773 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.3627, allocations: 9.625 kB / 334 MB, free: 4.773 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.202e-05/0.3628, allocations: 32.83 kB / 334 MB, free: 4.734 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.746e-05/0.3628, allocations: 6.625 kB / 334 MB, free: 4.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000184/0.363, allocations: 182.6 kB / 334.2 MB, free: 4.523 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.363, allocations: 5.5 kB / 334.2 MB, free: 4.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.67e-05/0.3631, allocations: 1.406 kB / 334.2 MB, free: 4.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002038/0.3633, allocations: 64.06 kB / 334.3 MB, free: 4.465 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.3633, allocations: 3.938 kB / 334.3 MB, free: 4.461 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.3633, allocations: 0.6562 kB / 334.3 MB, free: 4.461 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.3633, allocations: 0.875 kB / 334.3 MB, free: 4.461 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001515/0.3635, allocations: 29.25 kB / 334.3 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004084/0.3639, allocations: 273.2 kB / 334.6 MB, free: 4.168 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002697/0.3642, allocations: 47.08 kB / 334.6 MB, free: 4.137 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.613e-05/0.3643, allocations: 5.109 kB / 334.6 MB, free: 4.133 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.3643, allocations: 40.36 kB / 334.7 MB, free: 4.086 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 2.645e-06/0.3643, allocations: 0 / 334.7 MB, free: 4.086 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0008547/0.3652, allocations: 156.3 kB / 334.8 MB, free: 4.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.3652, allocations: 78.48 kB / 334.9 MB, free: 3.926 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.3654, allocations: 128.5 kB / 335 MB, free: 3.812 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.3654, allocations: 27.58 kB / 335.1 MB, free: 3.781 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.92e-05/0.3655, allocations: 155.9 kB / 335.2 MB, free: 3.629 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.455e-05/0.3655, allocations: 19.98 kB / 335.2 MB, free: 3.613 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.761e-06/0.3655, allocations: 0 / 335.2 MB, free: 3.613 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.939e-05/0.3656, allocations: 316.8 kB / 335.5 MB, free: 3.297 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.3657, allocations: 24.45 kB / 335.6 MB, free: 3.293 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.3659, allocations: 41.38 kB / 335.6 MB, free: 3.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.366, allocations: 61.94 kB / 335.7 MB, free: 3.223 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3661, allocations: 0 / 335.7 MB, free: 3.223 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003681/0.3664, allocations: 119.8 kB / 335.8 MB, free: 3.145 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.693e-05/0.3665, allocations: 31.23 kB / 335.8 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.3665, allocations: 6.094 kB / 335.8 MB, free: 3.109 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.3665, allocations: 0 / 335.8 MB, free: 3.109 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.3667, allocations: 19.02 kB / 335.8 MB, free: 3.105 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.3667, allocations: 0 / 335.8 MB, free: 3.105 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.137e-05/0.3668, allocations: 15.09 kB / 335.9 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.3668, allocations: 2.844 kB / 335.9 MB, free: 3.098 MB / 266.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 (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.848e-05/0.3669, allocations: 117.8 kB / 336 MB, free: 2.977 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.931e-05/0.367, allocations: 6.734 kB / 336 MB, free: 2.973 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003654/0.3673, allocations: 104.5 kB / 336.1 MB, free: 2.914 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.3674, allocations: 1.469 kB / 336.1 MB, free: 2.914 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3674, allocations: 0.8438 kB / 336.1 MB, free: 2.914 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3674, allocations: 0 / 336.1 MB, free: 2.914 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005754/0.368, allocations: 349 kB / 336.4 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.368, allocations: 0.6875 kB / 336.4 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/0.3681, allocations: 14.11 kB / 336.4 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.3681, allocations: 0 / 336.4 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.3681, allocations: 6.391 kB / 336.4 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.3682, allocations: 4 kB / 336.5 MB, free: 2.582 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.3682, allocations: 9.375 kB / 336.5 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000329/0.3685, allocations: 184.6 kB / 336.6 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.277e-05/0.3686, allocations: 88.72 kB / 336.7 MB, free: 2.324 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.3686, allocations: 0 / 336.7 MB, free: 2.324 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.3687, allocations: 8.672 kB / 336.7 MB, free: 2.324 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.017e-05/0.3688, allocations: 8.109 kB / 336.7 MB, free: 2.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.3688, allocations: 5.141 kB / 336.8 MB, free: 2.316 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.922e-05/0.3689, allocations: 102.8 kB / 336.9 MB, free: 2.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.3689, allocations: 0 / 336.9 MB, free: 2.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003599/0.3693, allocations: 25.86 kB / 336.9 MB, free: 2.223 MB / 266.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 (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.00129/0.3706, allocations: 0.9331 MB / 337.8 MB, free: 1.441 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004014/0.371, allocations: 111.4 kB / 337.9 MB, free: 1.367 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.371, allocations: 5.25 kB / 337.9 MB, free: 1.363 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001407/0.3712, allocations: 31.77 kB / 338 MB, free: 1.355 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.3715, allocations: 13.41 kB / 338 MB, free: 1.352 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007745/0.3723, allocations: 404.5 kB / 338.4 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001606/0.3725, allocations: 0.6887 MB / 339.1 MB, free: 272 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.999e-05/0.3726, allocations: 20.23 kB / 339.1 MB, free: 260 kB / 266.7 MB Notification: Performance of SimCode: time 1.423e-06/0.3726, allocations: 0 / 339.1 MB, free: 260 kB / 266.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_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20InitializeParameter.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.1/Resources/Data/Tables/test_v6.mat", tmp21); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.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.1/Resources/Data/Tables/test_v6.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.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_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20.cpp:712:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20FMU.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_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.o] Error 1