Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.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.CombiTable1D.Test20,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test20",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.07/2.07, allocations: 209.2 MB / 224.8 MB, free: 0.6289 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004453/0.0004455, allocations: 11.94 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3524, allocations: 48.71 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1D.Test20): time 0.002295/0.3547, allocations: 1.207 MB / 332.5 MB, free: 5.914 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.3563, allocations: 0.8154 MB / 333.3 MB, free: 5.336 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.947e-05/0.3564, allocations: 0 / 333.3 MB, free: 5.336 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002362/0.3567, allocations: 22.31 kB / 333.3 MB, free: 5.324 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001889/0.3569, allocations: 27.42 kB / 333.3 MB, free: 5.309 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001706/0.357, allocations: 39.34 kB / 333.4 MB, free: 5.285 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000139/0.3572, allocations: 35.58 kB / 333.4 MB, free: 5.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.3573, allocations: 12.19 kB / 333.4 MB, free: 5.266 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.32e-05/0.3574, allocations: 21.73 kB / 333.5 MB, free: 5.254 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001835/0.3576, allocations: 20.05 kB / 333.5 MB, free: 5.246 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.3576, allocations: 1 kB / 333.5 MB, free: 5.246 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.3578, allocations: 40.06 kB / 333.5 MB, free: 5.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.956e-05/0.3578, allocations: 8.547 kB / 333.5 MB, free: 5.227 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4e-05/0.3579, allocations: 32.23 kB / 333.6 MB, free: 5.191 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001854/0.3581, allocations: 59.36 kB / 333.6 MB, free: 5.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.3581, allocations: 0 / 333.6 MB, free: 5.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3581, allocations: 1.156 kB / 333.6 MB, free: 5.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.3581, allocations: 0 / 333.6 MB, free: 5.18 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.0005398/0.3587, allocations: 393.1 kB / 334 MB, free: 4.773 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.3587, allocations: 8.031 kB / 334 MB, free: 4.773 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.79e-05/0.3588, allocations: 37.09 kB / 334 MB, free: 4.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.748e-05/0.3588, allocations: 7.031 kB / 334 MB, free: 4.727 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001879/0.359, allocations: 186.2 kB / 334.2 MB, free: 4.516 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.3591, allocations: 5.672 kB / 334.2 MB, free: 4.512 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.679e-05/0.3591, allocations: 2.719 kB / 334.2 MB, free: 4.512 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000208/0.3593, allocations: 63.53 kB / 334.3 MB, free: 4.457 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.3593, allocations: 5.625 kB / 334.3 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.3594, allocations: 0 / 334.3 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.3594, allocations: 0.5625 kB / 334.3 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001571/0.3595, allocations: 30.62 kB / 334.3 MB, free: 4.445 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004534/0.36, allocations: 286.1 kB / 334.6 MB, free: 4.156 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002732/0.3603, allocations: 48.66 kB / 334.7 MB, free: 4.125 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.3603, allocations: 9.125 kB / 334.7 MB, free: 4.117 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.3604, allocations: 32.84 kB / 334.7 MB, free: 4.078 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 2.093e-06/0.3604, allocations: 0 / 334.7 MB, free: 4.078 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0008651/0.3613, allocations: 166.4 kB / 334.9 MB, free: 4.008 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.3613, allocations: 78.83 kB / 334.9 MB, free: 3.914 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.3615, allocations: 133.8 kB / 335.1 MB, free: 3.797 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.3615, allocations: 25.7 kB / 335.1 MB, free: 3.766 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.206e-05/0.3616, allocations: 156.6 kB / 335.3 MB, free: 3.613 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.604e-05/0.3616, allocations: 19.73 kB / 335.3 MB, free: 3.598 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-06/0.3616, allocations: 4 kB / 335.3 MB, free: 3.594 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.343e-05/0.3617, allocations: 313.6 kB / 335.6 MB, free: 3.281 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.3619, allocations: 25.39 kB / 335.6 MB, free: 3.277 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/0.362, allocations: 44.02 kB / 335.6 MB, free: 3.254 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.3622, allocations: 65.33 kB / 335.7 MB, free: 3.207 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3622, allocations: 0 / 335.7 MB, free: 3.207 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004132/0.3626, allocations: 122.9 kB / 335.8 MB, free: 3.129 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/0.3627, allocations: 31.77 kB / 335.9 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3627, allocations: 1.688 kB / 335.9 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.3627, allocations: 4 kB / 335.9 MB, free: 3.094 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.3629, allocations: 14.73 kB / 335.9 MB, free: 3.094 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.3629, allocations: 1.219 kB / 335.9 MB, free: 3.094 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.612e-05/0.363, allocations: 14.62 kB / 335.9 MB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.363, allocations: 5.438 kB / 335.9 MB, free: 3.082 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 9.166e-05/0.3631, allocations: 115.2 kB / 336 MB, free: 2.965 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.186e-05/0.3632, allocations: 12.95 kB / 336 MB, free: 2.957 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004021/0.3636, allocations: 112.7 kB / 336.1 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.3636, allocations: 0 / 336.1 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.3636, allocations: 2.109 kB / 336.1 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3636, allocations: 0 / 336.1 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005885/0.3642, allocations: 363 kB / 336.5 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.3643, allocations: 1.406 kB / 336.5 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.3644, allocations: 13.39 kB / 336.5 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.246e-06/0.3644, allocations: 0.5156 kB / 336.5 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.3644, allocations: 5 kB / 336.5 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.503e-06/0.3644, allocations: 2.094 kB / 336.5 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3645, allocations: 7.953 kB / 336.5 MB, free: 2.551 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003468/0.3648, allocations: 189.7 kB / 336.7 MB, free: 2.402 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.287e-05/0.3649, allocations: 87.41 kB / 336.8 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.3649, allocations: 2.156 kB / 336.8 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.365, allocations: 10.98 kB / 336.8 MB, free: 2.297 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.523e-05/0.3651, allocations: 3.297 kB / 336.8 MB, free: 2.297 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.3651, allocations: 6.859 kB / 336.8 MB, free: 2.293 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.769e-05/0.3652, allocations: 98.95 kB / 336.9 MB, free: 2.211 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3652, allocations: 0 / 336.9 MB, free: 2.211 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003568/0.3656, allocations: 24.56 kB / 336.9 MB, free: 2.203 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.001357/0.367, allocations: 0.944 MB / 337.9 MB, free: 1.418 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004244/0.3674, allocations: 121.4 kB / 338 MB, free: 1.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3674, allocations: 0 / 338 MB, free: 1.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.3676, allocations: 33.36 kB / 338 MB, free: 1.332 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.3679, allocations: 10.28 kB / 338 MB, free: 1.328 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007695/0.3687, allocations: 412 kB / 338.4 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001617/0.3689, allocations: 0.6902 MB / 339.1 MB, free: 248 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.744e-05/0.369, allocations: 24.86 kB / 339.2 MB, free: 232 kB / 266.7 MB Notification: Performance of SimCode: time 1.102e-06/0.369, allocations: 0 / 339.2 MB, free: 232 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_CombiTable1D_Test20CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test20InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_1_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.1/Resources/Data/Tables/test_v6.mat", tmp21); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test20Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_1_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.1/Resources/Data/Tables/test_v6.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test20Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_1_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_1_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_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_1_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_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_1_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test20CalcHelperMain.o] Error 1