Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1Ds.Test18.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.CombiTable1Ds.Test18,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Ds.Test18,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18",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.002501/0.002507, allocations: 184 kB / 16.41 MB, free: 5.703 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.202/2.202, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001142/0.001142, allocations: 93.53 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5545/0.5545, allocations: 43.56 MB / 362.7 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00065/0.0006501, allocations: 16 kB / 431.5 MB, free: 6.09 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1416, allocations: 58.83 MB / 490.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4809/0.6226, allocations: 86.69 MB / 0.5635 GB, free: 15.89 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.6229, allocations: 73.25 kB / 0.5635 GB, free: 15.82 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01954/0.6425, allocations: 4.596 MB / 0.568 GB, free: 11.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.6425, allocations: 0 / 0.568 GB, free: 11.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.6426, allocations: 4 kB / 0.568 GB, free: 11.27 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005648/0.6431, allocations: 386.9 kB / 0.5684 GB, free: 10.85 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.6432, allocations: 11.97 kB / 0.5684 GB, free: 10.84 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.998e-05/0.6433, allocations: 42.55 kB / 0.5685 GB, free: 10.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.132e-05/0.6433, allocations: 7.438 kB / 0.5685 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.6436, allocations: 189.5 kB / 0.5686 GB, free: 10.56 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.6437, allocations: 4 kB / 0.5687 GB, free: 10.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.722e-05/0.6437, allocations: 4 kB / 0.5687 GB, free: 10.55 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002545/0.644, allocations: 79.33 kB / 0.5687 GB, free: 10.46 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.644, allocations: 0 / 0.5687 GB, free: 10.46 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.644, allocations: 0.5625 kB / 0.5687 GB, free: 10.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.6441, allocations: 4 kB / 0.5687 GB, free: 10.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001814/0.6442, allocations: 37 kB / 0.5688 GB, free: 10.42 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005543/0.6448, allocations: 296.7 kB / 0.5691 GB, free: 10.08 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.645, allocations: 54.5 kB / 0.5691 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.6451, allocations: 0 / 0.5691 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.214e-05/0.6451, allocations: 42.42 kB / 0.5691 GB, free: 9.973 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 2.033e-06/0.6451, allocations: 4 kB / 0.5692 GB, free: 9.969 MB / 394.7 MB Notification: Performance of matching and sorting (n=8): time 0.001031/0.6462, allocations: 189.2 kB / 0.5693 GB, free: 9.777 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.762e-05/0.6463, allocations: 85.11 kB / 0.5694 GB, free: 9.676 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001952/0.6465, allocations: 125 kB / 0.5695 GB, free: 9.547 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.6465, allocations: 29.7 kB / 0.5696 GB, free: 9.512 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.682e-05/0.6466, allocations: 154.6 kB / 0.5697 GB, free: 9.359 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.124e-05/0.6467, allocations: 35.61 kB / 0.5697 GB, free: 9.324 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.813e-06/0.6467, allocations: 0 / 0.5697 GB, free: 9.324 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.6469, allocations: 310.8 kB / 0.57 GB, free: 9.012 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.647, allocations: 35.98 kB / 0.5701 GB, free: 8.977 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.6472, allocations: 45.62 kB / 0.5701 GB, free: 8.926 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000163/0.6474, allocations: 31.98 kB / 0.5701 GB, free: 8.895 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.6474, allocations: 0 / 0.5701 GB, free: 8.895 MB / 394.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003647/0.6478, allocations: 101.7 kB / 0.5702 GB, free: 8.789 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.6478, allocations: 4 kB / 0.5702 GB, free: 8.785 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.6478, allocations: 0 / 0.5702 GB, free: 8.785 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.6478, allocations: 0 / 0.5702 GB, free: 8.785 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/0.648, allocations: 23.92 kB / 0.5703 GB, free: 8.762 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.648, allocations: 7.953 kB / 0.5703 GB, free: 8.754 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.484e-05/0.6481, allocations: 11.98 kB / 0.5703 GB, free: 8.742 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.6482, allocations: 0 / 0.5703 GB, free: 8.742 MB / 394.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001325/0.6483, allocations: 125.8 kB / 0.5704 GB, free: 8.609 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.727e-05/0.6484, allocations: 7.906 kB / 0.5704 GB, free: 8.602 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000465/0.6488, allocations: 130.3 kB / 0.5705 GB, free: 8.469 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.6489, allocations: 0 / 0.5705 GB, free: 8.469 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.6489, allocations: 0.875 kB / 0.5705 GB, free: 8.469 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.6489, allocations: 7.953 kB / 0.5705 GB, free: 8.461 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007731/0.6497, allocations: 394.4 kB / 0.5709 GB, free: 8.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.6497, allocations: 0 / 0.5709 GB, free: 8.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001295/0.6498, allocations: 16 kB / 0.5709 GB, free: 8.004 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.6498, allocations: 7.969 kB / 0.5709 GB, free: 7.996 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.6499, allocations: 4.328 kB / 0.571 GB, free: 7.992 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.6499, allocations: 0 / 0.571 GB, free: 7.992 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.6499, allocations: 4 kB / 0.571 GB, free: 7.988 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004175/0.6503, allocations: 215.3 kB / 0.5712 GB, free: 7.762 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.527e-05/0.6504, allocations: 81.02 kB / 0.5712 GB, free: 7.664 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.696e-05/0.6504, allocations: 4.75 kB / 0.5712 GB, free: 7.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.6506, allocations: 15.94 kB / 0.5713 GB, free: 7.645 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.731e-05/0.6506, allocations: 4 kB / 0.5713 GB, free: 7.641 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-06/0.6506, allocations: 4 kB / 0.5713 GB, free: 7.637 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001303/0.6508, allocations: 108 kB / 0.5714 GB, free: 7.531 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6508, allocations: 0 / 0.5714 GB, free: 7.531 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003634/0.6512, allocations: 35.94 kB / 0.5714 GB, free: 7.496 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 (8): * Single equations (assignments): 8 * 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.001964/0.6531, allocations: 1.08 MB / 0.5725 GB, free: 6.492 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003645/0.6535, allocations: 75.95 kB / 0.5725 GB, free: 6.418 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.6536, allocations: 0 / 0.5725 GB, free: 6.418 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001618/0.6537, allocations: 44.06 kB / 0.5726 GB, free: 6.375 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.654, allocations: 24.08 kB / 0.5726 GB, free: 6.352 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.6556, allocations: 0.6211 MB / 0.5732 GB, free: 5.684 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003561/0.656, allocations: 0.6965 MB / 0.5739 GB, free: 4.961 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.6561, allocations: 27.48 kB / 0.5739 GB, free: 4.934 MB / 394.7 MB Notification: Performance of SimCode: time 9.32e-07/0.6561, allocations: 0 / 0.5739 GB, free: 4.934 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/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_CombiTable1Ds_Test18CalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18InitializeParameter.cpp:39:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp28; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18InitializeParameter.cpp:40: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.txt", tmp28); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp11; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18Initialize.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.txt", tmp11); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18Initialize.cpp:278:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp19; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18Initialize.cpp:279:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp19); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18.cpp:745:24: error: use of undeclared identifier 'tmp6' _t_new_P_fileName_ = tmp6; ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18FMU.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_CombiTable1Ds_Test18CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.o] Error 1