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.Test55.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.Test55,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test55",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.053/2.053, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005194/0.0005194, allocations: 16 kB / 282.6 MB, free: 9.605 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3591, allocations: 48.71 MB / 331.3 MB, free: 6.516 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test55): time 0.002366/0.3615, allocations: 1.296 MB / 332.6 MB, free: 5.863 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001822/0.3634, allocations: 0.9921 MB / 333.6 MB, free: 5.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.252e-05/0.3635, allocations: 1.062 kB / 333.6 MB, free: 5.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000319/0.3639, allocations: 27.34 kB / 333.6 MB, free: 5.148 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002107/0.3641, allocations: 35.44 kB / 333.6 MB, free: 5.129 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.3644, allocations: 62.86 kB / 333.7 MB, free: 5.094 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001838/0.3646, allocations: 51.28 kB / 333.7 MB, free: 5.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.868e-05/0.3647, allocations: 14.03 kB / 333.8 MB, free: 5.062 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.256e-05/0.3648, allocations: 27.5 kB / 333.8 MB, free: 5.051 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.365, allocations: 28.12 kB / 333.8 MB, free: 5.039 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.923e-05/0.365, allocations: 2.719 kB / 333.8 MB, free: 5.039 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002061/0.3653, allocations: 48.39 kB / 333.9 MB, free: 5.027 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.289e-05/0.3653, allocations: 15.64 kB / 333.9 MB, free: 5.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.687e-05/0.3654, allocations: 32.36 kB / 333.9 MB, free: 4.984 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002712/0.3657, allocations: 92.09 kB / 334 MB, free: 4.961 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.3657, allocations: 0 / 334 MB, free: 4.961 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.806e-06/0.3657, allocations: 4 kB / 334 MB, free: 4.957 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.3657, allocations: 0 / 334 MB, free: 4.957 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.0005869/0.3663, allocations: 411.7 kB / 334.4 MB, free: 4.531 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.3664, allocations: 10 kB / 334.4 MB, free: 4.531 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.685e-05/0.3664, allocations: 32.27 kB / 334.4 MB, free: 4.492 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.366e-05/0.3665, allocations: 3.562 kB / 334.5 MB, free: 4.492 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002316/0.3667, allocations: 194.9 kB / 334.6 MB, free: 4.281 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.3667, allocations: 1.156 kB / 334.6 MB, free: 4.281 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.018e-05/0.3668, allocations: 7.672 kB / 334.6 MB, free: 4.277 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001577/0.3669, allocations: 58.53 kB / 334.7 MB, free: 4.223 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.367, allocations: 0.5156 kB / 334.7 MB, free: 4.223 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.367, allocations: 0 / 334.7 MB, free: 4.223 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.367, allocations: 4.969 kB / 334.7 MB, free: 4.219 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.924e-05/0.3671, allocations: 18.69 kB / 334.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003717/0.3675, allocations: 273.7 kB / 335 MB, free: 3.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002283/0.3677, allocations: 42.14 kB / 335 MB, free: 3.898 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.3677, allocations: 2.062 kB / 335 MB, free: 3.898 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001604/0.3679, allocations: 63.2 kB / 335.1 MB, free: 3.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 2.284e-06/0.3679, allocations: 0 / 335.1 MB, free: 3.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004661/0.3684, allocations: 106.4 kB / 335.2 MB, free: 3.781 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.3685, allocations: 79.58 kB / 335.3 MB, free: 3.688 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001926/0.3687, allocations: 138.9 kB / 335.4 MB, free: 3.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.3687, allocations: 31.17 kB / 335.4 MB, free: 3.535 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.132e-05/0.3688, allocations: 158.1 kB / 335.6 MB, free: 3.383 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.61e-05/0.3688, allocations: 15.28 kB / 335.6 MB, free: 3.371 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.684e-06/0.3688, allocations: 1.531 kB / 335.6 MB, free: 3.371 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.147e-05/0.3689, allocations: 320.8 kB / 335.9 MB, free: 3.051 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.588e-05/0.369, allocations: 21.27 kB / 336 MB, free: 3.043 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.541e-05/0.369, allocations: 32.08 kB / 336 MB, free: 3.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.661e-05/0.3691, allocations: 55.25 kB / 336 MB, free: 2.973 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3692, allocations: 0 / 336 MB, free: 2.973 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002473/0.3694, allocations: 115.2 kB / 336.2 MB, free: 2.891 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.046e-05/0.3695, allocations: 37.53 kB / 336.2 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.3695, allocations: 1.188 kB / 336.2 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.3695, allocations: 0 / 336.2 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.238e-05/0.3696, allocations: 9.672 kB / 336.2 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.3696, allocations: 5.234 kB / 336.2 MB, free: 2.852 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.731e-05/0.3697, allocations: 7.484 kB / 336.2 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.3697, allocations: 3.375 kB / 336.2 MB, free: 2.848 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.0001019/0.3699, allocations: 133 kB / 336.3 MB, free: 2.715 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.501e-05/0.3699, allocations: 11.17 kB / 336.4 MB, free: 2.707 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.515e-05/0.37, allocations: 12.77 kB / 336.4 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.37, allocations: 0 / 336.4 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.37, allocations: 1.594 kB / 336.4 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.37, allocations: 1.031 kB / 336.4 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003945/0.3704, allocations: 333.7 kB / 336.7 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.3704, allocations: 4 kB / 336.7 MB, free: 2.371 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.232e-05/0.3705, allocations: 6.719 kB / 336.7 MB, free: 2.371 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.3705, allocations: 0 / 336.7 MB, free: 2.371 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.3705, allocations: 2.5 kB / 336.7 MB, free: 2.371 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.3705, allocations: 5.531 kB / 336.7 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3705, allocations: 0 / 336.7 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001851/0.3707, allocations: 171.2 kB / 336.9 MB, free: 2.215 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.683e-05/0.3708, allocations: 85.69 kB / 337 MB, free: 2.117 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.51e-05/0.3708, allocations: 5.094 kB / 337 MB, free: 2.113 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001471/0.371, allocations: 6.969 kB / 337 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.087e-05/0.3711, allocations: 4.672 kB / 337 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.632e-05/0.3711, allocations: 2.062 kB / 337 MB, free: 2.109 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000148/0.3713, allocations: 104.4 kB / 337.1 MB, free: 2.027 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.3713, allocations: 0 / 337.1 MB, free: 2.027 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004334/0.3717, allocations: 38.28 kB / 337.1 MB, free: 2.016 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.001549/0.3733, allocations: 1.054 MB / 338.2 MB, free: 1.145 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002782/0.3736, allocations: 103.7 kB / 338.3 MB, free: 1.066 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3736, allocations: 0 / 338.3 MB, free: 1.066 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.138e-05/0.3737, allocations: 19.33 kB / 338.3 MB, free: 1.059 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003387/0.3741, allocations: 20.06 kB / 338.3 MB, free: 1.051 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008028/0.3749, allocations: 422.1 kB / 338.7 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.3751, allocations: 0.6974 MB / 339.4 MB, free: 15.95 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.275e-05/0.3752, allocations: 25.14 kB / 339.5 MB, free: 15.93 MB / 282.7 MB Notification: Performance of SimCode: time 1.142e-06/0.3752, allocations: 4 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_Test55CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test55InitializeParameter.cpp:39:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp23; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test55InitializeParameter.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_v4.mat", tmp23); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp8; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.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_v4.mat", tmp8); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.cpp:293:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.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_Test55CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test55.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_Test55CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test55FMU.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_Test55CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.o] Error 1