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.Test57.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.Test57,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.001/2.001, allocations: 209.2 MB / 224.8 MB, free: 0.543 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004719/0.000472, allocations: 16 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3758/0.3763, allocations: 48.7 MB / 331.3 MB, free: 6.516 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test57): time 0.00238/0.3788, allocations: 1.299 MB / 332.6 MB, free: 5.855 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.3807, allocations: 0.991 MB / 333.6 MB, free: 5.152 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.291e-05/0.3808, allocations: 1.312 kB / 333.6 MB, free: 5.152 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003141/0.3811, allocations: 18.72 kB / 333.6 MB, free: 5.148 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002153/0.3813, allocations: 39.09 kB / 333.6 MB, free: 5.125 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002669/0.3816, allocations: 59.59 kB / 333.7 MB, free: 5.094 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001609/0.3818, allocations: 50.41 kB / 333.7 MB, free: 5.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.952e-05/0.3819, allocations: 15.23 kB / 333.8 MB, free: 5.062 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.055e-05/0.382, allocations: 33.81 kB / 333.8 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001897/0.3822, allocations: 29.91 kB / 333.8 MB, free: 5.031 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.914e-05/0.3822, allocations: 2.469 kB / 333.8 MB, free: 5.031 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002113/0.3825, allocations: 45.11 kB / 333.9 MB, free: 5.023 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.186e-05/0.3825, allocations: 17.23 kB / 333.9 MB, free: 5.012 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.249e-05/0.3826, allocations: 29.89 kB / 333.9 MB, free: 4.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002653/0.3829, allocations: 91.5 kB / 334 MB, free: 4.957 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.3829, allocations: 0 / 334 MB, free: 4.957 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3829, allocations: 0 / 334 MB, free: 4.957 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.3829, allocations: 4 kB / 334 MB, free: 4.953 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005584/0.3835, allocations: 414.2 kB / 334.4 MB, free: 4.527 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.3835, allocations: 9.219 kB / 334.4 MB, free: 4.527 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.468e-05/0.3836, allocations: 32.72 kB / 334.4 MB, free: 4.488 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.266e-05/0.3836, allocations: 8.266 kB / 334.5 MB, free: 4.484 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002189/0.3838, allocations: 197.7 kB / 334.6 MB, free: 4.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.3839, allocations: 5.469 kB / 334.7 MB, free: 4.266 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.796e-05/0.3839, allocations: 2.531 kB / 334.7 MB, free: 4.266 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000156/0.3841, allocations: 60.2 kB / 334.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.992e-05/0.3841, allocations: 0 / 334.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.3841, allocations: 1.5 kB / 334.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.3842, allocations: 0 / 334.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.734e-05/0.3842, allocations: 17.58 kB / 334.7 MB, free: 4.203 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003827/0.3846, allocations: 274.4 kB / 335 MB, free: 3.922 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002338/0.3849, allocations: 45.88 kB / 335 MB, free: 3.887 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.3849, allocations: 1.922 kB / 335 MB, free: 3.887 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001707/0.3851, allocations: 60.27 kB / 335.1 MB, free: 3.832 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.923e-06/0.3851, allocations: 0 / 335.1 MB, free: 3.832 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004899/0.3856, allocations: 106 kB / 335.2 MB, free: 3.773 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.3857, allocations: 78.42 kB / 335.3 MB, free: 3.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001773/0.3859, allocations: 135.9 kB / 335.4 MB, free: 3.566 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.3859, allocations: 36.16 kB / 335.5 MB, free: 3.527 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.43e-05/0.386, allocations: 161 kB / 335.6 MB, free: 3.371 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.66e-05/0.386, allocations: 11.97 kB / 335.6 MB, free: 3.363 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.466e-06/0.386, allocations: 1.406 kB / 335.6 MB, free: 3.363 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.222e-05/0.3861, allocations: 321.2 kB / 335.9 MB, free: 3.043 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.513e-05/0.3862, allocations: 19.62 kB / 336 MB, free: 3.035 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.858e-05/0.3862, allocations: 34.25 kB / 336 MB, free: 3.012 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.296e-05/0.3864, allocations: 54.61 kB / 336 MB, free: 2.965 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3864, allocations: 0.6094 kB / 336 MB, free: 2.965 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002571/0.3866, allocations: 115.1 kB / 336.2 MB, free: 2.883 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.946e-05/0.3867, allocations: 37.86 kB / 336.2 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.3867, allocations: 0 / 336.2 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.3867, allocations: 3.938 kB / 336.2 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.55e-05/0.3868, allocations: 9.688 kB / 336.2 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.3868, allocations: 1.25 kB / 336.2 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.027e-05/0.3869, allocations: 3.562 kB / 336.2 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.387, allocations: 2.375 kB / 336.2 MB, free: 2.844 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: 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 (7): * Single equations (assignments): 6 * 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.000106/0.3871, allocations: 130.2 kB / 336.3 MB, free: 2.715 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.564e-05/0.3871, allocations: 7.906 kB / 336.3 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.379e-05/0.3872, allocations: 10.66 kB / 336.4 MB, free: 2.703 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3872, allocations: 4.922 kB / 336.4 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3872, allocations: 2.047 kB / 336.4 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3872, allocations: 0 / 336.4 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003971/0.3876, allocations: 335 kB / 336.7 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3876, allocations: 0 / 336.7 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.26e-05/0.3877, allocations: 10.25 kB / 336.7 MB, free: 2.371 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3877, allocations: 0 / 336.7 MB, free: 2.371 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.3877, allocations: 2.531 kB / 336.7 MB, free: 2.371 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.3877, allocations: 5.594 kB / 336.7 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3878, allocations: 128 / 336.7 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001825/0.3879, allocations: 175.9 kB / 336.9 MB, free: 2.211 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.859e-05/0.388, allocations: 88.31 kB / 337 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.212e-05/0.388, allocations: 2.078 kB / 337 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.3882, allocations: 7.047 kB / 337 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.777e-05/0.3882, allocations: 3.547 kB / 337 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.3883, allocations: 3.094 kB / 337 MB, free: 2.105 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.835e-05/0.3884, allocations: 102.4 kB / 337.1 MB, free: 2.023 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3884, allocations: 0 / 337.1 MB, free: 2.023 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003821/0.3888, allocations: 47.95 kB / 337.1 MB, free: 2.004 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: 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 (5): * Single equations (assignments): 4 * 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.001491/0.3903, allocations: 1.051 MB / 338.2 MB, free: 1.137 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002464/0.3906, allocations: 102.1 kB / 338.3 MB, free: 1.059 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3906, allocations: 1.344 kB / 338.3 MB, free: 1.059 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.095e-05/0.3906, allocations: 18.97 kB / 338.3 MB, free: 1.051 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.391, allocations: 15.53 kB / 338.3 MB, free: 1.047 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007711/0.3918, allocations: 422.3 kB / 338.7 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00021/0.392, allocations: 0.6919 MB / 339.4 MB, free: 15.95 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.3921, allocations: 26.92 kB / 339.4 MB, free: 15.93 MB / 282.7 MB Notification: Performance of SimCode: time 9.52e-07/0.3921, allocations: 3.938 kB / 339.5 MB, free: 15.93 MB / 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_Test57CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57InitializeParameter.cpp:39:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp23; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57InitializeParameter.cpp:40: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_v7.mat", tmp23); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp8; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.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_v7.mat", tmp8); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:293:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:294:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT2, tmp16); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57.cpp:728:24: error: use of undeclared identifier 'tmp3' _t_new_P_fileName_ = tmp3; ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57FMU.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_Test57CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.o] Error 1