Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable2D.Test12.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.CombiTable2D.Test12,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test12,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12",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.002349/0.002349, allocations: 178.9 kB / 13.65 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.195/2.195, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001635/0.001635, allocations: 90.62 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2903/0.2903, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.18e-05/4.196e-05, allocations: 4 kB / 425.4 MB, free: 23.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1348, allocations: 58.85 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5263/0.6612, allocations: 86.99 MB / 0.5578 GB, free: 104 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.6615, allocations: 71.12 kB / 0.5579 GB, free: 72 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01883/0.6804, allocations: 4.311 MB / 0.5621 GB, free: 12.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.6804, allocations: 4 kB / 0.5621 GB, free: 12.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.6804, allocations: 3.609 kB / 0.5621 GB, free: 12.65 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005669/0.681, allocations: 385.6 kB / 0.5625 GB, free: 12.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/0.6811, allocations: 8.031 kB / 0.5625 GB, free: 12.23 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.879e-05/0.6812, allocations: 30.56 kB / 0.5625 GB, free: 12.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.297e-05/0.6812, allocations: 15.84 kB / 0.5625 GB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003066/0.6815, allocations: 191.2 kB / 0.5627 GB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.6816, allocations: 11.98 kB / 0.5627 GB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.316e-05/0.6816, allocations: 4 kB / 0.5627 GB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001746/0.6818, allocations: 62.5 kB / 0.5628 GB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.6818, allocations: 0 / 0.5628 GB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.6818, allocations: 3.375 kB / 0.5628 GB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.6819, allocations: 0 / 0.5628 GB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.627e-05/0.682, allocations: 15.44 kB / 0.5628 GB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004999/0.6825, allocations: 303.7 kB / 0.5631 GB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001143/0.6826, allocations: 34.02 kB / 0.5631 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.465e-05/0.6827, allocations: 12.3 kB / 0.5632 GB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.247e-05/0.6827, allocations: 4 kB / 0.5632 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.6828, allocations: 33.88 kB / 0.5632 GB, free: 11.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 2.114e-06/0.6828, allocations: 0 / 0.5632 GB, free: 11.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0007025/0.6835, allocations: 149.1 kB / 0.5633 GB, free: 11.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.6836, allocations: 77.11 kB / 0.5634 GB, free: 11.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/0.6838, allocations: 133.4 kB / 0.5635 GB, free: 11.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.6838, allocations: 25.7 kB / 0.5636 GB, free: 11.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.334e-05/0.6839, allocations: 160.9 kB / 0.5637 GB, free: 10.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.579e-05/0.684, allocations: 22.89 kB / 0.5637 GB, free: 10.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.673e-06/0.684, allocations: 4 kB / 0.5637 GB, free: 10.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.6841, allocations: 310.8 kB / 0.564 GB, free: 10.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.552e-05/0.6842, allocations: 14.38 kB / 0.5641 GB, free: 10.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.539e-05/0.6843, allocations: 36.84 kB / 0.5641 GB, free: 10.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.449e-05/0.6844, allocations: 18.3 kB / 0.5641 GB, free: 10.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.6844, allocations: 3.938 kB / 0.5641 GB, free: 10.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001896/0.6846, allocations: 69.44 kB / 0.5642 GB, free: 10.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.6846, allocations: 7.953 kB / 0.5642 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.6847, allocations: 4.031 kB / 0.5642 GB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.6847, allocations: 0 / 0.5642 GB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000227/0.6849, allocations: 23.98 kB / 0.5642 GB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.685, allocations: 3.938 kB / 0.5642 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001424/0.6851, allocations: 19.92 kB / 0.5642 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.6851, allocations: 0 / 0.5642 GB, free: 10.39 MB / 378.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: 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.766e-05/0.6852, allocations: 112.4 kB / 0.5643 GB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.594e-05/0.6853, allocations: 3.906 kB / 0.5643 GB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002733/0.6856, allocations: 104.6 kB / 0.5644 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.6856, allocations: 0 / 0.5644 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.6856, allocations: 0 / 0.5644 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.6856, allocations: 0 / 0.5644 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005622/0.6862, allocations: 357.3 kB / 0.5648 GB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.6862, allocations: 0 / 0.5648 GB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001799/0.6864, allocations: 31.94 kB / 0.5648 GB, free: 9.785 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.6864, allocations: 0 / 0.5648 GB, free: 9.785 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.6864, allocations: 0 / 0.5648 GB, free: 9.785 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.6865, allocations: 0 / 0.5648 GB, free: 9.785 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6865, allocations: 4 kB / 0.5648 GB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/0.6867, allocations: 171.4 kB / 0.565 GB, free: 9.613 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.307e-05/0.6868, allocations: 93 kB / 0.5651 GB, free: 9.504 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.188e-05/0.6869, allocations: 7.391 kB / 0.5651 GB, free: 9.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.687, allocations: 19.92 kB / 0.5651 GB, free: 9.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.959e-05/0.6871, allocations: 3.984 kB / 0.5651 GB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.6871, allocations: 8 kB / 0.5651 GB, free: 9.469 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001272/0.6873, allocations: 105.4 kB / 0.5652 GB, free: 9.375 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6873, allocations: 0 / 0.5652 GB, free: 9.375 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000362/0.6877, allocations: 31.12 kB / 0.5652 GB, free: 9.348 MB / 378.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 () * 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.001703/0.6894, allocations: 1.002 MB / 0.5662 GB, free: 8.395 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002208/0.6896, allocations: 49.17 kB / 0.5663 GB, free: 8.359 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.6897, allocations: 0 / 0.5663 GB, free: 8.359 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.632e-05/0.6897, allocations: 27.44 kB / 0.5663 GB, free: 8.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.6901, allocations: 18.95 kB / 0.5663 GB, free: 8.324 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007416/0.6908, allocations: 213.8 kB / 0.5665 GB, free: 8.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.6912, allocations: 0.6965 MB / 0.5672 GB, free: 7.367 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.6913, allocations: 29.11 kB / 0.5672 GB, free: 7.348 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.6914, allocations: 0 / 0.5672 GB, free: 7.348 MB / 378.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12InitializeParameter.cpp:40:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp30; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12InitializeParameter.cpp:41: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_v7.mat", tmp30); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp12; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12Initialize.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_v7.mat", tmp12); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12Initialize.cpp:277:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp20; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12Initialize.cpp:278: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_CombiTable2D_Test12CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12.cpp:758:24: error: use of undeclared identifier 'tmp6' _t_new_P_fileName_ = tmp6; ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12FMU.cpp:11: /var/lib/jenkins1/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_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test12CalcHelperMain.o] Error 1