Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable2Dv.Test11.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Dv.Test11,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Dv.Test11,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002383/0.002383, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.434/2.434, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001218/0.001218, allocations: 87.05 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3021/0.3021, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.987e-05/3.007e-05, allocations: 4 kB / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.435/0.4351, allocations: 58.85 MB / 477.2 MB, free: 5.156 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1664/0.6015, allocations: 86.72 MB / 0.5507 GB, free: 12.48 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.6019, allocations: 75.47 kB / 0.5508 GB, free: 12.41 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01858/0.6205, allocations: 4.287 MB / 0.5549 GB, free: 8.113 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6205, allocations: 0 / 0.5549 GB, free: 8.113 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.6206, allocations: 4 kB / 0.5549 GB, free: 8.109 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005372/0.6211, allocations: 386.9 kB / 0.5553 GB, free: 7.688 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.6212, allocations: 8.031 kB / 0.5553 GB, free: 7.68 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.874e-05/0.6212, allocations: 15.94 kB / 0.5553 GB, free: 7.664 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002956/0.6216, allocations: 194.8 kB / 0.5555 GB, free: 7.434 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.6216, allocations: 0 / 0.5555 GB, free: 7.434 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/0.6216, allocations: 4 kB / 0.5555 GB, free: 7.43 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001173/0.6217, allocations: 20 kB / 0.5555 GB, free: 7.41 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001432/0.6219, allocations: 55.41 kB / 0.5556 GB, free: 7.344 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.6219, allocations: 7.938 kB / 0.5556 GB, free: 7.336 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.622, allocations: 0 / 0.5556 GB, free: 7.336 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.622, allocations: 0 / 0.5556 GB, free: 7.336 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005613/0.6226, allocations: 293.2 kB / 0.5559 GB, free: 7.012 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001061/0.6227, allocations: 34.58 kB / 0.5559 GB, free: 6.969 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.538e-05/0.6227, allocations: 16.86 kB / 0.5559 GB, free: 6.949 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.6228, allocations: 4.078 kB / 0.5559 GB, free: 6.945 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.703e-05/0.6228, allocations: 30.56 kB / 0.556 GB, free: 6.906 MB / 395.1 MB Notification: Performance of pre-optimization done (n=4): time 1.743e-06/0.6228, allocations: 0 / 0.556 GB, free: 6.906 MB / 395.1 MB Notification: Performance of matching and sorting (n=7): time 0.0006955/0.6235, allocations: 157.3 kB / 0.5561 GB, free: 6.746 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.6236, allocations: 81.11 kB / 0.5562 GB, free: 6.648 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/0.6238, allocations: 125.2 kB / 0.5563 GB, free: 6.516 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.6238, allocations: 25.7 kB / 0.5563 GB, free: 6.484 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.706e-05/0.6239, allocations: 162.5 kB / 0.5565 GB, free: 6.324 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.805e-05/0.624, allocations: 27.61 kB / 0.5565 GB, free: 6.297 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.084e-06/0.624, allocations: 0 / 0.5565 GB, free: 6.297 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.6241, allocations: 310.8 kB / 0.5568 GB, free: 5.984 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.359e-05/0.6242, allocations: 24.23 kB / 0.5568 GB, free: 5.961 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.506e-05/0.6243, allocations: 29.72 kB / 0.5569 GB, free: 5.926 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.7e-05/0.6244, allocations: 32.23 kB / 0.5569 GB, free: 5.895 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.6244, allocations: 3.938 kB / 0.5569 GB, free: 5.891 MB / 395.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001994/0.6246, allocations: 77.67 kB / 0.557 GB, free: 5.809 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.6246, allocations: 10.12 kB / 0.557 GB, free: 5.801 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.6247, allocations: 4 kB / 0.557 GB, free: 5.797 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.6247, allocations: 144 / 0.557 GB, free: 5.797 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.6249, allocations: 19.98 kB / 0.557 GB, free: 5.777 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.625e-06/0.6249, allocations: 3.953 kB / 0.557 GB, free: 5.773 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.6251, allocations: 23.97 kB / 0.557 GB, free: 5.75 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.6251, allocations: 0 / 0.557 GB, free: 5.75 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 9.332e-05/0.6252, allocations: 108.9 kB / 0.5571 GB, free: 5.637 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002114/0.6254, allocations: 85.52 kB / 0.5572 GB, free: 5.547 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.511e-05/0.6255, allocations: 11.89 kB / 0.5572 GB, free: 5.535 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002659/0.6258, allocations: 94.25 kB / 0.5573 GB, free: 5.441 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.6258, allocations: 0 / 0.5573 GB, free: 5.441 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.6258, allocations: 4 kB / 0.5573 GB, free: 5.438 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/0.6258, allocations: 3.984 kB / 0.5573 GB, free: 5.434 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005468/0.6264, allocations: 351 kB / 0.5577 GB, free: 5.047 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.6264, allocations: 0 / 0.5577 GB, free: 5.047 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001837/0.6266, allocations: 23.98 kB / 0.5577 GB, free: 5.023 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.6266, allocations: 3.953 kB / 0.5577 GB, free: 5.02 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.6266, allocations: 4 kB / 0.5577 GB, free: 5.016 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.6266, allocations: 4 kB / 0.5577 GB, free: 5.012 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.6266, allocations: 0 / 0.5577 GB, free: 5.012 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000247/0.6269, allocations: 183.7 kB / 0.5579 GB, free: 4.816 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.499e-05/0.627, allocations: 89 kB / 0.558 GB, free: 4.711 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/0.627, allocations: 7.953 kB / 0.558 GB, free: 4.703 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.6272, allocations: 11.98 kB / 0.558 GB, free: 4.691 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.466e-05/0.6273, allocations: 8 kB / 0.558 GB, free: 4.684 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.607e-06/0.6273, allocations: 0 / 0.558 GB, free: 4.684 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001115/0.6274, allocations: 111.3 kB / 0.5581 GB, free: 4.574 MB / 395.1 MB Notification: Performance of sort global known variables: time 4e-07/0.6274, allocations: 0 / 0.5581 GB, free: 4.574 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0004034/0.6278, allocations: 31.97 kB / 0.5581 GB, free: 4.543 MB / 395.1 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.001589/0.6294, allocations: 1.004 MB / 0.5591 GB, free: 3.562 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002194/0.6297, allocations: 47.98 kB / 0.5592 GB, free: 3.516 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.227e-06/0.6297, allocations: 4 kB / 0.5592 GB, free: 3.512 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 8.2e-05/0.6298, allocations: 32 kB / 0.5592 GB, free: 3.48 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.6301, allocations: 19.73 kB / 0.5592 GB, free: 3.461 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007722/0.6309, allocations: 227.3 kB / 0.5594 GB, free: 3.195 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.6313, allocations: 0.7002 MB / 0.5601 GB, free: 2.469 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.6314, allocations: 27.42 kB / 0.5601 GB, free: 2.441 MB / 395.1 MB Notification: Performance of SimCode: time 1.002e-06/0.6314, allocations: 4 kB / 0.5601 GB, free: 2.438 MB / 395.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11CalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11InitializeParameter.cpp:41:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp30; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11InitializeParameter.cpp:42:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables/test_v6.mat", tmp30); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp12; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11Initialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables/test_v6.mat", tmp12); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11Initialize.cpp:278:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp20; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11Initialize.cpp:279:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp20); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11.cpp:763:24: error: use of undeclared identifier 'tmp6' _t_new_P_fileName_ = tmp6; ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11FMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2Dv_Test11CalcHelperMain.o] Error 1