Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1Ds.Test25_usertab.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.Test25_usertab,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test25_usertab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Ds.Test25_usertab,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test25_usertab",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.002337/0.002337, allocations: 185.7 kB / 16.41 MB, free: 5.723 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.318/2.318, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.00158/0.00158, allocations: 92.52 kB / 270.9 MB, free: 8.395 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.5551/0.5551, allocations: 43.55 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004924/0.0004924, allocations: 12 kB / 431.5 MB, free: 6.074 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1646/0.1651, allocations: 58.85 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5217/0.6869, allocations: 86.5 MB / 0.5633 GB, free: 60 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004244/0.6874, allocations: 76.05 kB / 0.5634 GB, free: 15.98 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02691/0.7143, allocations: 3.757 MB / 0.567 GB, free: 12.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.7144, allocations: 0 / 0.567 GB, free: 12.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.861e-05/0.7144, allocations: 0 / 0.567 GB, free: 12.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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007845/0.7152, allocations: 398.8 kB / 0.5674 GB, free: 11.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.943e-05/0.7153, allocations: 12.03 kB / 0.5674 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.007e-05/0.7154, allocations: 34.56 kB / 0.5675 GB, free: 11.78 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.801e-05/0.7155, allocations: 11.19 kB / 0.5675 GB, free: 11.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004263/0.7159, allocations: 194.8 kB / 0.5677 GB, free: 11.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.253e-05/0.716, allocations: 8 kB / 0.5677 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.253e-05/0.716, allocations: 0 / 0.5677 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003554/0.7164, allocations: 75.33 kB / 0.5677 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.7165, allocations: 0 / 0.5677 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.7165, allocations: 0 / 0.5677 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.7165, allocations: 4 kB / 0.5677 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000297/0.7169, allocations: 41 kB / 0.5678 GB, free: 11.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007928/0.7177, allocations: 299.3 kB / 0.5681 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003353/0.718, allocations: 62.5 kB / 0.5681 GB, free: 11 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.914e-05/0.7181, allocations: 3.984 kB / 0.5681 GB, free: 11 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.581e-05/0.7182, allocations: 34.69 kB / 0.5682 GB, free: 10.95 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 3.085e-06/0.7182, allocations: 0 / 0.5682 GB, free: 10.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.001464/0.7197, allocations: 181.3 kB / 0.5683 GB, free: 10.77 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.645e-05/0.7198, allocations: 81.06 kB / 0.5684 GB, free: 10.67 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.7201, allocations: 129 kB / 0.5685 GB, free: 10.54 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.774e-05/0.7202, allocations: 29.7 kB / 0.5686 GB, free: 10.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.7203, allocations: 158.5 kB / 0.5687 GB, free: 10.35 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.896e-05/0.7204, allocations: 31.64 kB / 0.5687 GB, free: 10.32 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.006e-05/0.7204, allocations: 0 / 0.5687 GB, free: 10.32 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.7207, allocations: 310.8 kB / 0.569 GB, free: 10 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002298/0.7209, allocations: 27.98 kB / 0.5691 GB, free: 9.977 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002415/0.7212, allocations: 41.88 kB / 0.5691 GB, free: 9.93 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001968/0.7214, allocations: 36.08 kB / 0.5691 GB, free: 9.895 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.7214, allocations: 0 / 0.5691 GB, free: 9.895 MB / 394.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0005865/0.722, allocations: 98.39 kB / 0.5692 GB, free: 9.793 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.957e-05/0.7221, allocations: 4 kB / 0.5692 GB, free: 9.789 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.7221, allocations: 4 kB / 0.5692 GB, free: 9.785 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.446e-05/0.7222, allocations: 3.984 kB / 0.5693 GB, free: 9.781 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002466/0.7224, allocations: 16 kB / 0.5693 GB, free: 9.766 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.7225, allocations: 0 / 0.5693 GB, free: 9.766 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.7226, allocations: 15.94 kB / 0.5693 GB, free: 9.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.545e-05/0.7227, allocations: 0 / 0.5693 GB, free: 9.75 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 (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 0.000187/0.7229, allocations: 117.8 kB / 0.5694 GB, free: 9.625 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.189e-05/0.723, allocations: 11.91 kB / 0.5694 GB, free: 9.613 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000702/0.7237, allocations: 130.2 kB / 0.5695 GB, free: 9.48 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.7237, allocations: 0 / 0.5695 GB, free: 9.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.7238, allocations: 4 kB / 0.5695 GB, free: 9.477 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.7238, allocations: 0 / 0.5695 GB, free: 9.477 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.7249, allocations: 380.1 kB / 0.5699 GB, free: 9.051 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.836e-06/0.725, allocations: 0 / 0.5699 GB, free: 9.051 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000202/0.7252, allocations: 23.92 kB / 0.5699 GB, free: 9.027 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.7252, allocations: 0 / 0.5699 GB, free: 9.027 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.129e-05/0.7252, allocations: 4 kB / 0.5699 GB, free: 9.023 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.047e-06/0.7253, allocations: 8 kB / 0.5699 GB, free: 9.016 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/0.7253, allocations: 4.328 kB / 0.5699 GB, free: 9.012 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006579/0.726, allocations: 195.4 kB / 0.5701 GB, free: 8.805 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.7261, allocations: 92.94 kB / 0.5702 GB, free: 8.695 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.166e-05/0.7262, allocations: 8 kB / 0.5702 GB, free: 8.688 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001883/0.7264, allocations: 8 kB / 0.5702 GB, free: 8.68 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.86e-05/0.7265, allocations: 7.984 kB / 0.5702 GB, free: 8.672 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.828e-05/0.7265, allocations: 7.953 kB / 0.5702 GB, free: 8.664 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002012/0.7267, allocations: 108.8 kB / 0.5703 GB, free: 8.559 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.82e-07/0.7268, allocations: 3.938 kB / 0.5703 GB, free: 8.555 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006093/0.7274, allocations: 31.98 kB / 0.5704 GB, free: 8.523 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 (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.003211/0.7306, allocations: 1.075 MB / 0.5714 GB, free: 7.527 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006227/0.7313, allocations: 71.89 kB / 0.5715 GB, free: 7.457 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.7313, allocations: 0 / 0.5715 GB, free: 7.457 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00025/0.7316, allocations: 39.98 kB / 0.5715 GB, free: 7.418 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.732, allocations: 7.984 kB / 0.5715 GB, free: 7.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002509/0.7346, allocations: 0.6184 MB / 0.5721 GB, free: 6.738 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005444/0.7352, allocations: 0.6926 MB / 0.5728 GB, free: 6.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/0.7354, allocations: 31.47 kB / 0.5729 GB, free: 5.988 MB / 394.7 MB Notification: Performance of SimCode: time 2.084e-06/0.7354, allocations: 4 kB / 0.5729 GB, free: 5.984 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"." "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables" -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test25_usertabCalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test25_usertabCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test25_usertabCalcHelperMain.cpp:28: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test25_usertabFunctions.cpp:5: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables/usertab.c:14: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables/usertab.h:75:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] {"TestTable_1D_Time", TestTable_1D_Time, 0, {6, 2}} ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables/usertab.h:76:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ,{"TestTable_1D_a" , TestTable_1D_a, 1, {4, 2}} ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables/usertab.h:77:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ,{"TestTable_1D_b" , TestTable_1D_b, 1, {5, 3}} ^ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables/usertab.h:78:13: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] ,{"TestTable_2D" , TestTable_2D, 2, {5, 4}} ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test25_usertabCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test25_usertabFunctions.cpp:300:18: error: no matching function for call to 'mydummyfunc' dummy_y__ext = mydummyfunc(ConstArray(dummy_u_).getData()); ^~~~~~~~~~~ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test25_usertabFunctions.cpp:6:8: note: candidate function not viable: 1st argument ('const double *') would lose const qualifier double mydummyfunc(double* dummy_in) { ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test25_usertabCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test25_usertabFMU.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) { ^ 5 warnings and 1 error generated. : recipe for target 'OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test25_usertabCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test25_usertabCalcHelperMain.o] Error 1