Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test50.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.CombiTimeTable.Test50,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.918/1.918, allocations: 209.2 MB / 224.8 MB, free: 1.551 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006081/0.0006083, allocations: 19.98 kB / 282.6 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1021, allocations: 48.71 MB / 331.3 MB, free: 8.922 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test50): time 0.002401/0.1045, allocations: 1.294 MB / 332.6 MB, free: 7.617 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.1065, allocations: 0.9971 MB / 333.6 MB, free: 6.613 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.192e-05/0.1066, allocations: 0 / 333.6 MB, free: 6.613 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002729/0.1069, allocations: 19.91 kB / 333.6 MB, free: 6.594 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002023/0.1071, allocations: 43.83 kB / 333.6 MB, free: 6.551 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000242/0.1074, allocations: 51.81 kB / 333.7 MB, free: 6.5 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001705/0.1076, allocations: 71.84 kB / 333.8 MB, free: 6.43 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.1077, allocations: 11.97 kB / 333.8 MB, free: 6.418 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.578e-05/0.1078, allocations: 27.92 kB / 333.8 MB, free: 6.391 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.108, allocations: 35.89 kB / 333.8 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.108, allocations: 4 kB / 333.8 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000177/0.1082, allocations: 55.84 kB / 333.9 MB, free: 6.297 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.185e-05/0.1082, allocations: 11.98 kB / 333.9 MB, free: 6.285 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.254e-05/0.1083, allocations: 37.64 kB / 333.9 MB, free: 6.242 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.1086, allocations: 92.09 kB / 334 MB, free: 6.152 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1086, allocations: 7.938 kB / 334 MB, free: 6.145 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1086, allocations: 0 / 334 MB, free: 6.145 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.1086, allocations: 0 / 334 MB, free: 6.145 MB / 282.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.0005804/0.1092, allocations: 416.8 kB / 334.4 MB, free: 5.684 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.1093, allocations: 12.03 kB / 334.5 MB, free: 5.672 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.254e-05/0.1093, allocations: 30.56 kB / 334.5 MB, free: 5.633 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.04e-05/0.1094, allocations: 7.906 kB / 334.5 MB, free: 5.625 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002684/0.1096, allocations: 198.9 kB / 334.7 MB, free: 5.391 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.1097, allocations: 0 / 334.7 MB, free: 5.391 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.905e-05/0.1097, allocations: 4 kB / 334.7 MB, free: 5.387 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001757/0.1099, allocations: 71.33 kB / 334.8 MB, free: 5.305 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.1099, allocations: 0 / 334.8 MB, free: 5.305 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.1099, allocations: 0 / 334.8 MB, free: 5.305 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.11, allocations: 4 kB / 334.8 MB, free: 5.301 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.612e-05/0.11, allocations: 19.97 kB / 334.8 MB, free: 5.281 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004281/0.1105, allocations: 292.8 kB / 335.1 MB, free: 4.945 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.1106, allocations: 46.5 kB / 335.1 MB, free: 4.891 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.058e-05/0.1107, allocations: 11.98 kB / 335.1 MB, free: 4.879 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001771/0.1109, allocations: 67.48 kB / 335.2 MB, free: 4.801 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 1.914e-06/0.1109, allocations: 0 / 335.2 MB, free: 4.801 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005205/0.1114, allocations: 125.4 kB / 335.3 MB, free: 4.672 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.1115, allocations: 81.09 kB / 335.4 MB, free: 4.574 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.1117, allocations: 145.9 kB / 335.5 MB, free: 4.422 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.1117, allocations: 29.7 kB / 335.6 MB, free: 4.387 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.899e-05/0.1118, allocations: 158.6 kB / 335.7 MB, free: 4.23 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.557e-05/0.1119, allocations: 19.8 kB / 335.7 MB, free: 4.211 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.624e-06/0.1119, allocations: 0 / 335.7 MB, free: 4.211 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.112, allocations: 318.8 kB / 336.1 MB, free: 3.891 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.825e-05/0.1121, allocations: 27.92 kB / 336.1 MB, free: 3.863 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.604e-05/0.1122, allocations: 37.64 kB / 336.1 MB, free: 3.82 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.1123, allocations: 53.7 kB / 336.2 MB, free: 3.762 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1123, allocations: 0 / 336.2 MB, free: 3.762 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002835/0.1126, allocations: 135.4 kB / 336.3 MB, free: 3.617 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.145e-05/0.1127, allocations: 41.69 kB / 336.3 MB, free: 3.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.1127, allocations: 0 / 336.3 MB, free: 3.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.1127, allocations: 3.938 kB / 336.3 MB, free: 3.566 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.956e-05/0.1128, allocations: 8 kB / 336.4 MB, free: 3.559 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.1128, allocations: 0 / 336.4 MB, free: 3.559 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.21e-05/0.1129, allocations: 11.92 kB / 336.4 MB, free: 3.547 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.113, allocations: 7.953 kB / 336.4 MB, free: 3.539 MB / 282.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: 3 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * 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.0001151/0.1131, allocations: 117.8 kB / 336.5 MB, free: 3.414 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.363e-05/0.1131, allocations: 7.906 kB / 336.5 MB, free: 3.406 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.945e-05/0.1132, allocations: 16.7 kB / 336.5 MB, free: 3.391 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.1132, allocations: 7.984 kB / 336.5 MB, free: 3.383 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1132, allocations: 0 / 336.5 MB, free: 3.383 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.1132, allocations: 0 / 336.5 MB, free: 3.383 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004674/0.1137, allocations: 354.5 kB / 336.9 MB, free: 2.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1137, allocations: 0 / 336.9 MB, free: 2.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.175e-05/0.1138, allocations: 4 kB / 336.9 MB, free: 2.977 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.1138, allocations: 7.984 kB / 336.9 MB, free: 2.969 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.1138, allocations: 0 / 336.9 MB, free: 2.969 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.1138, allocations: 4 kB / 336.9 MB, free: 2.965 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1138, allocations: 0 / 336.9 MB, free: 2.965 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002419/0.1141, allocations: 183.9 kB / 337.1 MB, free: 2.77 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.759e-05/0.1142, allocations: 89 kB / 337.1 MB, free: 2.664 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.308e-05/0.1142, allocations: 4 kB / 337.2 MB, free: 2.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.344e-05/0.1143, allocations: 4 kB / 337.2 MB, free: 2.656 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.032e-05/0.1144, allocations: 7.984 kB / 337.2 MB, free: 2.648 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.996e-05/0.1144, allocations: 8 kB / 337.2 MB, free: 2.641 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001129/0.1145, allocations: 110.3 kB / 337.3 MB, free: 2.535 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1145, allocations: 0 / 337.3 MB, free: 2.535 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003627/0.1149, allocations: 35.98 kB / 337.3 MB, free: 2.5 MB / 282.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: 2 ($whenCondition1,t_new.nextTimeEvent) * Number of discrete states: 1 (t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001667/0.1166, allocations: 1.049 MB / 338.4 MB, free: 1.523 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002706/0.1169, allocations: 127.3 kB / 338.5 MB, free: 1.387 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1169, allocations: 0 / 338.5 MB, free: 1.387 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.983e-05/0.117, allocations: 16 kB / 338.5 MB, free: 1.371 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.1173, allocations: 23.83 kB / 338.5 MB, free: 1.348 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000856/0.1181, allocations: 444.5 kB / 339 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000292/0.1185, allocations: 0.6965 MB / 339.7 MB, free: 132 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.726e-05/0.1186, allocations: 31.42 kB / 339.7 MB, free: 100 kB / 282.7 MB Notification: Performance of SimCode: time 8.12e-07/0.1186, allocations: 0 / 339.7 MB, free: 100 kB / 282.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_CombiTimeTable_Test50CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50InitializeParameter.cpp:41:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp25; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50InitializeParameter.cpp:42: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.txt", tmp25); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50Initialize.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.txt", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50Initialize.cpp:307:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp18; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50Initialize.cpp:308:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT2, tmp18); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50.cpp:741:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50FMU.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_CombiTimeTable_Test50CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test50CalcHelperMain.o] Error 1