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.Test60.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.Test60,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.996/1.996, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006363/0.0006364, allocations: 16 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3853/0.386, allocations: 48.7 MB / 331.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test60): time 0.00245/0.3885, allocations: 1.294 MB / 332.6 MB, free: 5.852 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001912/0.3905, allocations: 0.9908 MB / 333.6 MB, free: 5.148 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.3906, allocations: 0 / 333.6 MB, free: 5.148 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003404/0.391, allocations: 23.58 kB / 333.6 MB, free: 5.141 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002324/0.3912, allocations: 36.17 kB / 333.6 MB, free: 5.121 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.3916, allocations: 58.47 kB / 333.7 MB, free: 5.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000166/0.3918, allocations: 59.58 kB / 333.7 MB, free: 5.059 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.3919, allocations: 8.719 kB / 333.8 MB, free: 5.055 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.349e-05/0.392, allocations: 27.8 kB / 333.8 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.3922, allocations: 33.11 kB / 333.8 MB, free: 5.027 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.119e-05/0.3923, allocations: 2.469 kB / 333.8 MB, free: 5.027 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002341/0.3925, allocations: 48.5 kB / 333.9 MB, free: 5.016 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.59e-05/0.3926, allocations: 18.81 kB / 333.9 MB, free: 5.004 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.364e-05/0.3926, allocations: 29.23 kB / 333.9 MB, free: 4.973 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002686/0.3929, allocations: 93.78 kB / 334 MB, free: 4.945 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3929, allocations: 0 / 334 MB, free: 4.945 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3929, allocations: 0 / 334 MB, free: 4.945 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.3929, allocations: 1.406 kB / 334 MB, free: 4.945 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.0006261/0.3936, allocations: 408 kB / 334.4 MB, free: 4.523 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.3936, allocations: 10.28 kB / 334.4 MB, free: 4.523 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.647e-05/0.3937, allocations: 31.41 kB / 334.4 MB, free: 4.484 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.31e-05/0.3937, allocations: 5.25 kB / 334.4 MB, free: 4.484 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002217/0.394, allocations: 201.8 kB / 334.6 MB, free: 4.266 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.394, allocations: 5.156 kB / 334.6 MB, free: 4.262 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.694e-05/0.394, allocations: 2.438 kB / 334.6 MB, free: 4.262 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.3942, allocations: 56.7 kB / 334.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.3942, allocations: 0 / 334.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.3942, allocations: 1.406 kB / 334.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.3943, allocations: 0 / 334.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.824e-05/0.3943, allocations: 14.5 kB / 334.7 MB, free: 4.207 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000374/0.3947, allocations: 281.9 kB / 335 MB, free: 3.918 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.395, allocations: 42.16 kB / 335 MB, free: 3.887 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.395, allocations: 0.8906 kB / 335 MB, free: 3.887 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001744/0.3952, allocations: 59.88 kB / 335.1 MB, free: 3.832 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 3.236e-06/0.3952, allocations: 0 / 335.1 MB, free: 3.832 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004716/0.3957, allocations: 106.5 kB / 335.2 MB, free: 3.773 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.3957, allocations: 83.2 kB / 335.3 MB, free: 3.676 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001685/0.3959, allocations: 141.7 kB / 335.4 MB, free: 3.559 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.396, allocations: 27.14 kB / 335.4 MB, free: 3.527 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.811e-05/0.396, allocations: 160.6 kB / 335.6 MB, free: 3.371 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/0.3961, allocations: 16.22 kB / 335.6 MB, free: 3.359 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.205e-06/0.3961, allocations: 5.125 kB / 335.6 MB, free: 3.355 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.495e-05/0.3961, allocations: 317.5 kB / 335.9 MB, free: 3.039 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.545e-05/0.3962, allocations: 19.84 kB / 336 MB, free: 3.031 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.976e-05/0.3963, allocations: 42.66 kB / 336 MB, free: 3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.615e-05/0.3964, allocations: 50.75 kB / 336 MB, free: 2.957 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3964, allocations: 0 / 336 MB, free: 2.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002292/0.3967, allocations: 114.7 kB / 336.2 MB, free: 2.875 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/0.3967, allocations: 41.11 kB / 336.2 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.3967, allocations: 1.281 kB / 336.2 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.3968, allocations: 0.6562 kB / 336.2 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.863e-05/0.3968, allocations: 9.734 kB / 336.2 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.3969, allocations: 0 / 336.2 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.712e-05/0.3969, allocations: 8.281 kB / 336.2 MB, free: 2.832 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/0.397, allocations: 2.281 kB / 336.2 MB, free: 2.832 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 9.861e-05/0.3971, allocations: 120.7 kB / 336.3 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.621e-05/0.3971, allocations: 11.7 kB / 336.3 MB, free: 2.703 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.568e-05/0.3972, allocations: 12.66 kB / 336.4 MB, free: 2.695 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.3972, allocations: 1.125 kB / 336.4 MB, free: 2.695 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.3972, allocations: 0 / 336.4 MB, free: 2.695 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.3972, allocations: 1.547 kB / 336.4 MB, free: 2.695 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003947/0.3976, allocations: 338.1 kB / 336.7 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.3977, allocations: 1.219 kB / 336.7 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.192e-05/0.3977, allocations: 6.031 kB / 336.7 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3977, allocations: 0 / 336.7 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.3978, allocations: 1.859 kB / 336.7 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.3978, allocations: 1.812 kB / 336.7 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3978, allocations: 3.984 kB / 336.7 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001848/0.398, allocations: 183.2 kB / 336.9 MB, free: 2.199 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.674e-05/0.398, allocations: 85.05 kB / 337 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.175e-05/0.3981, allocations: 2.141 kB / 337 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.041e-05/0.3982, allocations: 2.531 kB / 337 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.244e-05/0.3982, allocations: 7.953 kB / 337 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.3982, allocations: 3.188 kB / 337 MB, free: 2.098 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.824e-05/0.3983, allocations: 107.9 kB / 337.1 MB, free: 2.012 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3984, allocations: 0 / 337.1 MB, free: 2.012 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003943/0.3988, allocations: 47.3 kB / 337.1 MB, free: 1.992 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.001493/0.4003, allocations: 1.042 MB / 338.2 MB, free: 1.133 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002778/0.4006, allocations: 107.3 kB / 338.3 MB, free: 1.051 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.4006, allocations: 1.219 kB / 338.3 MB, free: 1.051 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.959e-05/0.4007, allocations: 10.81 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.0003752/0.4011, allocations: 20.8 kB / 338.3 MB, free: 1.043 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008206/0.4019, allocations: 421.5 kB / 338.7 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.4022, allocations: 0.6996 MB / 339.4 MB, free: 15.94 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.502e-05/0.4023, allocations: 26.67 kB / 339.5 MB, free: 15.92 MB / 282.7 MB Notification: Performance of SimCode: time 1.102e-06/0.4023, allocations: 0 / 339.5 MB, free: 15.92 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_Test60CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60InitializeParameter.cpp:39:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp23; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60InitializeParameter.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.txt", tmp23); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp8; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60Initialize.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", tmp8); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60Initialize.cpp:293:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60Initialize.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_Test60CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60.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_Test60CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60FMU.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_Test60CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test60CalcHelperMain.o] Error 1