Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test17.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test17,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.458/2.458, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006502/0.0006504, allocations: 12 kB / 314.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3427, allocations: 54.86 MB / 369.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1953/0.538, allocations: 81.52 MB / 450.9 MB, free: 9.086 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/0.5384, allocations: 87.78 kB / 451 MB, free: 9.004 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01035/0.5487, allocations: 2.822 MB / 453.8 MB, free: 6.156 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.5488, allocations: 0 / 453.8 MB, free: 6.156 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.5488, allocations: 7.938 kB / 453.8 MB, free: 6.148 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004388/0.5493, allocations: 367.6 kB / 454.2 MB, free: 5.742 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.5493, allocations: 12.03 kB / 454.2 MB, free: 5.73 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.035e-05/0.5494, allocations: 34.56 kB / 454.2 MB, free: 5.688 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.815e-05/0.5494, allocations: 11.86 kB / 454.2 MB, free: 5.676 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.5496, allocations: 174.9 kB / 454.4 MB, free: 5.465 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.732e-05/0.5497, allocations: 16 kB / 454.4 MB, free: 5.449 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.66e-05/0.5497, allocations: 4 kB / 454.4 MB, free: 5.445 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000313/0.55, allocations: 183.3 kB / 454.6 MB, free: 5.211 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.55, allocations: 0 / 454.6 MB, free: 5.211 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.5501, allocations: 11.95 kB / 454.6 MB, free: 5.199 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.939e-05/0.5501, allocations: 8 kB / 454.6 MB, free: 5.191 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.5503, allocations: 59.72 kB / 454.7 MB, free: 5.133 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001328/0.5516, allocations: 1.701 MB / 456.4 MB, free: 3.324 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001137/0.5518, allocations: 173.1 kB / 456.5 MB, free: 3.145 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.742e-05/0.5518, allocations: 75.28 kB / 456.6 MB, free: 3.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.183e-05/0.5519, allocations: 109.8 kB / 456.7 MB, free: 2.953 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 2.875e-06/0.5519, allocations: 0 / 456.7 MB, free: 2.953 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 0.0001015/0.552, allocations: 39.06 kB / 456.7 MB, free: 2.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.578e-05/0.5521, allocations: 134.7 kB / 456.9 MB, free: 2.766 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002498/0.5524, allocations: 165.3 kB / 457 MB, free: 2.598 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.5524, allocations: 25.7 kB / 457.1 MB, free: 2.566 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.5526, allocations: 221.5 kB / 457.3 MB, free: 2.348 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.994e-06/0.5526, allocations: 4 kB / 457.3 MB, free: 2.344 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.228e-05/0.5526, allocations: 4 kB / 457.3 MB, free: 2.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.5528, allocations: 322.8 kB / 457.6 MB, free: 2.016 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8e-05/0.5529, allocations: 35.92 kB / 457.6 MB, free: 1.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.5531, allocations: 149.1 kB / 457.8 MB, free: 1.777 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001554/0.5532, allocations: 71.91 kB / 457.9 MB, free: 1.707 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.5532, allocations: 0 / 457.9 MB, free: 1.707 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004684/0.5537, allocations: 201.1 kB / 458.1 MB, free: 1.504 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.5538, allocations: 8 kB / 458.1 MB, free: 1.496 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.5538, allocations: 4 kB / 458.1 MB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.974e-05/0.5538, allocations: 8 kB / 458.1 MB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002201/0.5541, allocations: 35.92 kB / 458.1 MB, free: 1.449 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/0.5541, allocations: 8.547 kB / 458.1 MB, free: 1.441 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.5542, allocations: 27.75 kB / 458.1 MB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.264e-05/0.5543, allocations: 12 kB / 458.2 MB, free: 1.402 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (20): * Single equations (assignments): 20 * 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 prepare postOptimizeDAE: time 0.000177/0.5544, allocations: 213 kB / 458.4 MB, free: 1.184 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.5546, allocations: 120.8 kB / 458.5 MB, free: 1.059 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.835e-05/0.5546, allocations: 112.6 kB / 458.6 MB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-05/0.5547, allocations: 192.2 kB / 458.8 MB, free: 0.7461 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.053e-05/0.5548, allocations: 184.2 kB / 459 MB, free: 0.5586 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.112e-05/0.5549, allocations: 180.3 kB / 459.1 MB, free: 384 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003548/0.5553, allocations: 425.1 kB / 459.5 MB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.685e-05/0.5554, allocations: 101 kB / 459.6 MB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.16e-05/0.5554, allocations: 108.9 kB / 459.8 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.151e-05/0.5555, allocations: 180.2 kB / 459.9 MB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.423e-05/0.5556, allocations: 180.3 kB / 460.1 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.723e-05/0.5557, allocations: 184.2 kB / 460.3 MB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.26e-05/0.5558, allocations: 184.2 kB / 460.5 MB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001969/0.556, allocations: 309 kB / 460.8 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.5561, allocations: 194 kB / 461 MB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.749e-05/0.5562, allocations: 188.2 kB / 461.1 MB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.5564, allocations: 101 kB / 461.2 MB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.5565, allocations: 184.2 kB / 461.4 MB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.922e-05/0.5566, allocations: 105 kB / 461.5 MB, free: 13.81 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001859/0.5568, allocations: 127.2 kB / 461.6 MB, free: 13.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5568, allocations: 4 kB / 461.6 MB, free: 13.68 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004073/0.5572, allocations: 16 kB / 461.7 MB, free: 13.66 MB / 394.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 (0): * Single equations (assignments): 0 * 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.0009784/0.5582, allocations: 0.9053 MB / 462.6 MB, free: 12.77 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002779/0.5585, allocations: 76.14 kB / 462.6 MB, free: 12.69 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.5585, allocations: 4 kB / 462.6 MB, free: 12.69 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.556e-06/0.5585, allocations: 0 / 462.6 MB, free: 12.69 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004018/0.5589, allocations: 0.5236 MB / 463.2 MB, free: 12.16 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002837/0.5618, allocations: 3.675 MB / 466.8 MB, free: 8.332 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.5622, allocations: 0.697 MB / 467.5 MB, free: 7.609 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.5624, allocations: 35.42 kB / 467.6 MB, free: 7.574 MB / 394.7 MB Notification: Performance of SimCode: time 1.192e-06/0.5624, allocations: 0 / 467.6 MB, free: 7.574 MB / 394.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=2 -DSUNDIALS_MINOR_VERSION=6 -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_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17Initialize.cpp:374:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp4; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17Initialize.cpp:375:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp4); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17FMU.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 2 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test17CalcHelperMain.o] Error 1