Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable2D.Test16.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.Test16,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test16,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16",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.002405/0.002404, allocations: 177.8 kB / 8.363 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.363/2.363, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001192/0.001191, allocations: 99.34 kB / 262.1 MB, free: 13.86 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.3261/0.3261, allocations: 43.48 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.935e-05/1.954e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4716/0.4717, allocations: 58.85 MB / 477.2 MB, free: 5.277 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1949/0.6667, allocations: 85.47 MB / 0.5495 GB, free: 13.81 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/0.6671, allocations: 71.97 kB / 0.5495 GB, free: 13.74 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01127/0.6783, allocations: 2.867 MB / 0.5523 GB, free: 10.86 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.6784, allocations: 0 / 0.5523 GB, free: 10.86 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.6784, allocations: 4 kB / 0.5523 GB, free: 10.86 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004275/0.6789, allocations: 361.2 kB / 0.5527 GB, free: 10.46 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.6789, allocations: 8.031 kB / 0.5527 GB, free: 10.45 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.466e-05/0.679, allocations: 12.2 kB / 0.5527 GB, free: 10.44 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001836/0.6792, allocations: 173.9 kB / 0.5529 GB, free: 10.23 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.6792, allocations: 0 / 0.5529 GB, free: 10.23 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.788e-05/0.6792, allocations: 4 kB / 0.5529 GB, free: 10.23 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001215/0.6794, allocations: 35.98 kB / 0.5529 GB, free: 10.2 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002558/0.6797, allocations: 171.4 kB / 0.5531 GB, free: 9.973 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.6797, allocations: 3.938 kB / 0.5531 GB, free: 9.969 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.6797, allocations: 11.94 kB / 0.5531 GB, free: 9.957 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.435e-05/0.6798, allocations: 8 kB / 0.5531 GB, free: 9.949 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001355/0.6811, allocations: 1.682 MB / 0.5547 GB, free: 8.172 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001043/0.6813, allocations: 165.1 kB / 0.5549 GB, free: 8 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.354e-05/0.6813, allocations: 80.14 kB / 0.555 GB, free: 7.918 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.86e-05/0.6814, allocations: 75.28 kB / 0.555 GB, free: 7.844 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.82e-05/0.6814, allocations: 109.8 kB / 0.5551 GB, free: 7.727 MB / 395.1 MB Notification: Performance of pre-optimization done (n=0): time 2.165e-06/0.6815, allocations: 0 / 0.5551 GB, free: 7.727 MB / 395.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001001/0.6816, allocations: 41.55 kB / 0.5552 GB, free: 7.68 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/0.6816, allocations: 55.41 kB / 0.5552 GB, free: 7.613 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.6819, allocations: 164.1 kB / 0.5554 GB, free: 7.449 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.6819, allocations: 25.7 kB / 0.5554 GB, free: 7.418 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.682, allocations: 225.5 kB / 0.5556 GB, free: 7.195 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.877e-06/0.6821, allocations: 4 kB / 0.5556 GB, free: 7.191 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.615e-06/0.6821, allocations: 0 / 0.5556 GB, free: 7.191 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.6822, allocations: 318.8 kB / 0.5559 GB, free: 6.871 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.43e-05/0.6823, allocations: 27.98 kB / 0.556 GB, free: 6.844 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.6825, allocations: 144.4 kB / 0.5561 GB, free: 6.645 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001439/0.6827, allocations: 67.92 kB / 0.5562 GB, free: 6.578 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.6827, allocations: 8 kB / 0.5562 GB, free: 6.57 MB / 395.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004044/0.6831, allocations: 165.7 kB / 0.5563 GB, free: 6.402 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.6831, allocations: 8.547 kB / 0.5563 GB, free: 6.395 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.6832, allocations: 12.02 kB / 0.5563 GB, free: 6.383 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.801e-05/0.6832, allocations: 8 kB / 0.5564 GB, free: 6.375 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002186/0.6834, allocations: 35.92 kB / 0.5564 GB, free: 6.34 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.6834, allocations: 4 kB / 0.5564 GB, free: 6.336 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001337/0.6836, allocations: 19.78 kB / 0.5564 GB, free: 6.316 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.941e-05/0.6836, allocations: 12 kB / 0.5564 GB, free: 6.305 MB / 395.1 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 () * 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.0001335/0.6838, allocations: 192.1 kB / 0.5566 GB, free: 6.109 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001089/0.6839, allocations: 142.5 kB / 0.5567 GB, free: 5.957 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.76e-05/0.684, allocations: 124.7 kB / 0.5569 GB, free: 5.828 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.575e-05/0.6841, allocations: 119.5 kB / 0.557 GB, free: 5.703 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.498e-05/0.6842, allocations: 184.3 kB / 0.5572 GB, free: 5.516 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.61e-05/0.6843, allocations: 176.3 kB / 0.5573 GB, free: 5.336 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001221/0.6844, allocations: 184.2 kB / 0.5575 GB, free: 5.148 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003048/0.6847, allocations: 405.8 kB / 0.5579 GB, free: 4.707 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-05/0.6848, allocations: 101 kB / 0.558 GB, free: 4.602 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.122e-05/0.6848, allocations: 104.9 kB / 0.5581 GB, free: 4.492 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.135e-05/0.6849, allocations: 180.3 kB / 0.5583 GB, free: 4.309 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.362e-05/0.685, allocations: 184.2 kB / 0.5584 GB, free: 4.121 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.325e-05/0.6851, allocations: 180.2 kB / 0.5586 GB, free: 3.938 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.78e-05/0.6852, allocations: 180.3 kB / 0.5588 GB, free: 3.754 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001823/0.6854, allocations: 315.7 kB / 0.5591 GB, free: 3.422 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.6855, allocations: 190 kB / 0.5593 GB, free: 3.211 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.855e-05/0.6857, allocations: 180.2 kB / 0.5594 GB, free: 3.027 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.6858, allocations: 112.9 kB / 0.5595 GB, free: 2.91 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.221e-05/0.6859, allocations: 176.3 kB / 0.5597 GB, free: 2.73 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.445e-05/0.6859, allocations: 109 kB / 0.5598 GB, free: 2.617 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001616/0.6861, allocations: 124.1 kB / 0.5599 GB, free: 2.496 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6861, allocations: 0 / 0.5599 GB, free: 2.496 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0004086/0.6866, allocations: 12 kB / 0.5599 GB, free: 2.484 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 (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.000948/0.6875, allocations: 0.9062 MB / 0.5608 GB, free: 1.566 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002176/0.6877, allocations: 60.91 kB / 0.5609 GB, free: 1.508 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.6878, allocations: 4.188 kB / 0.5609 GB, free: 1.504 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 5.6e-06/0.6878, allocations: 3.938 kB / 0.5609 GB, free: 1.5 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.6882, allocations: 0.5302 MB / 0.5614 GB, free: 0.9648 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007393/0.6889, allocations: 271.1 kB / 0.5617 GB, free: 0.6523 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.6893, allocations: 0.7045 MB / 0.5623 GB, free: 15.92 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.748e-05/0.6894, allocations: 27.42 kB / 0.5624 GB, free: 15.89 MB / 411.1 MB Notification: Performance of SimCode: time 1.062e-06/0.6895, allocations: 0 / 0.5624 GB, free: 15.89 MB / 411.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_CombiTable2D_Test16CalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16InitializeParameter.cpp:27:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp8; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16InitializeParameter.cpp:28: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_v4.mat", tmp8); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16Initialize.cpp:96:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp4; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16Initialize.cpp:97: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_v4.mat", tmp4); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16Initialize.cpp:377:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp6; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16Initialize.cpp:378:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp6); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16.cpp:606:16: error: use of undeclared identifier 'tmp0' _fileName_ = tmp0; ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16FMU.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_CombiTable2D_Test16CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test16CalcHelperMain.o] Error 1