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.Test20.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.Test20,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.191/2.191, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004244/0.0004244, allocations: 15.98 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3512/0.3516, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1D.Test20): time 0.002252/0.3539, allocations: 1.219 MB / 370.5 MB, free: 9.488 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002008/0.356, allocations: 0.8336 MB / 371.3 MB, free: 8.648 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.271e-05/0.3561, allocations: 4 kB / 371.3 MB, free: 8.645 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002491/0.3564, allocations: 19.84 kB / 371.3 MB, free: 8.625 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002111/0.3566, allocations: 27.91 kB / 371.4 MB, free: 8.598 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001738/0.3568, allocations: 27.91 kB / 371.4 MB, free: 8.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001657/0.357, allocations: 43.89 kB / 371.4 MB, free: 8.527 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.3571, allocations: 8 kB / 371.5 MB, free: 8.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.346e-05/0.3572, allocations: 19.92 kB / 371.5 MB, free: 8.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002039/0.3574, allocations: 23.91 kB / 371.5 MB, free: 8.477 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.3574, allocations: 0 / 371.5 MB, free: 8.477 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001448/0.3576, allocations: 31.98 kB / 371.5 MB, free: 8.445 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.614e-05/0.3577, allocations: 11.92 kB / 371.5 MB, free: 8.434 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.114e-05/0.3577, allocations: 33.7 kB / 371.6 MB, free: 8.395 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002079/0.358, allocations: 63.84 kB / 371.6 MB, free: 8.332 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.358, allocations: 0 / 371.6 MB, free: 8.332 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.358, allocations: 0 / 371.6 MB, free: 8.332 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.358, allocations: 0 / 371.6 MB, free: 8.332 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006778/0.3587, allocations: 397.8 kB / 372 MB, free: 7.891 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.3588, allocations: 8.031 kB / 372 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.797e-05/0.3588, allocations: 30.56 kB / 372.1 MB, free: 7.844 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.578e-05/0.3589, allocations: 11.89 kB / 372.1 MB, free: 7.832 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.3591, allocations: 178.9 kB / 372.2 MB, free: 7.617 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.3592, allocations: 4 kB / 372.3 MB, free: 7.613 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.92e-05/0.3592, allocations: 0 / 372.3 MB, free: 7.613 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002531/0.3595, allocations: 71.39 kB / 372.3 MB, free: 7.531 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.3595, allocations: 0 / 372.3 MB, free: 7.531 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.3595, allocations: 3.938 kB / 372.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.3596, allocations: 0 / 372.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/0.3598, allocations: 31.94 kB / 372.4 MB, free: 7.496 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005991/0.3604, allocations: 288.9 kB / 372.6 MB, free: 7.164 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003195/0.3607, allocations: 46.56 kB / 372.7 MB, free: 7.109 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.612e-05/0.3608, allocations: 0 / 372.7 MB, free: 7.109 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.3608, allocations: 30.56 kB / 372.7 MB, free: 7.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.663e-06/0.3608, allocations: 0 / 372.7 MB, free: 7.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.001069/0.3619, allocations: 177.5 kB / 372.9 MB, free: 6.891 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.32e-05/0.362, allocations: 77.11 kB / 373 MB, free: 6.797 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.3622, allocations: 125.8 kB / 373.1 MB, free: 6.664 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.3623, allocations: 29.7 kB / 373.1 MB, free: 6.629 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.3624, allocations: 158.5 kB / 373.3 MB, free: 6.473 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.197e-05/0.3624, allocations: 19.75 kB / 373.3 MB, free: 6.453 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.095e-06/0.3625, allocations: 3.938 kB / 373.3 MB, free: 6.449 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.3626, allocations: 314.8 kB / 373.6 MB, free: 6.133 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.3628, allocations: 27.97 kB / 373.6 MB, free: 6.105 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.363, allocations: 41.7 kB / 373.7 MB, free: 6.059 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002124/0.3633, allocations: 61.7 kB / 373.7 MB, free: 5.992 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.3633, allocations: 0 / 373.7 MB, free: 5.992 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004953/0.3638, allocations: 127.4 kB / 373.9 MB, free: 5.855 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.894e-05/0.3639, allocations: 33.7 kB / 373.9 MB, free: 5.816 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.3639, allocations: 3.953 kB / 373.9 MB, free: 5.812 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.3639, allocations: 0 / 373.9 MB, free: 5.812 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.3641, allocations: 15.98 kB / 373.9 MB, free: 5.797 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.3641, allocations: 3.938 kB / 373.9 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.3642, allocations: 8 kB / 373.9 MB, free: 5.785 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.3642, allocations: 4 kB / 373.9 MB, free: 5.781 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 (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 0.0001357/0.3644, allocations: 117.8 kB / 374 MB, free: 5.656 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.089e-05/0.3645, allocations: 7.906 kB / 374 MB, free: 5.648 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004906/0.365, allocations: 101.6 kB / 374.1 MB, free: 5.543 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.365, allocations: 7.891 kB / 374.1 MB, free: 5.535 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.365, allocations: 3.938 kB / 374.2 MB, free: 5.531 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.365, allocations: 7.984 kB / 374.2 MB, free: 5.523 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000909/0.366, allocations: 354.5 kB / 374.5 MB, free: 5.121 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.366, allocations: 384 / 374.5 MB, free: 5.121 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.3661, allocations: 19.98 kB / 374.5 MB, free: 5.102 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.3662, allocations: 3.953 kB / 374.5 MB, free: 5.098 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.3662, allocations: 4 kB / 374.5 MB, free: 5.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.3662, allocations: 4 kB / 374.5 MB, free: 5.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3662, allocations: 0 / 374.5 MB, free: 5.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005084/0.3667, allocations: 195.4 kB / 374.7 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.539e-05/0.3668, allocations: 81.11 kB / 374.8 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.3669, allocations: 3.953 kB / 374.8 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.3671, allocations: 7.984 kB / 374.8 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.462e-05/0.3671, allocations: 8 kB / 374.8 MB, free: 4.766 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.3671, allocations: 0 / 374.8 MB, free: 4.766 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001242/0.3673, allocations: 95.27 kB / 374.9 MB, free: 4.672 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3673, allocations: 4 kB / 374.9 MB, free: 4.668 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005792/0.3679, allocations: 31.89 kB / 375 MB, free: 4.637 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 (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.002233/0.3701, allocations: 0.9989 MB / 376 MB, free: 3.699 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005324/0.3707, allocations: 119.4 kB / 376.1 MB, free: 3.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3707, allocations: 4 kB / 376.1 MB, free: 3.566 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002034/0.3709, allocations: 27.98 kB / 376.1 MB, free: 3.539 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005185/0.3715, allocations: 11.95 kB / 376.1 MB, free: 3.527 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.3726, allocations: 412.7 kB / 376.5 MB, free: 3.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.3731, allocations: 0.6926 MB / 377.2 MB, free: 2.352 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.3732, allocations: 19.42 kB / 377.2 MB, free: 2.332 MB / 298.7 MB Notification: Performance of SimCode: time 6.833e-06/0.3732, allocations: 0 / 377.2 MB, free: 2.332 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_Test20CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_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.2/Resources/Data/Tables/test_v6.mat", tmp21); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_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.2/Resources/Data/Tables/test_v6.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_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_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20.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_Test20CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_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_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.o] Error 1