Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Tables.CombiTimeTable.Test66_usertab,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab") translateModel(ModelicaTest.Tables.CombiTimeTable.Test66_usertab,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000966/0.000966, allocations: 194.6 kB / 16.79 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 226.5 MB / 244.1 MB, free: 8.254 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008084/0.0008082, allocations: 101.7 kB / 296.1 MB, free: 6.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3486/0.3486, allocations: 44.82 MB / 393 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002959/0.000296, allocations: 12 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3321, allocations: 62.95 MB / 0.5165 GB, free: 36.86 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1184/0.4506, allocations: 90.66 MB / 0.605 GB, free: 14.73 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.4509, allocations: 75.97 kB / 0.6051 GB, free: 14.65 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01847/0.4694, allocations: 6.498 MB / 0.6114 GB, free: 8.141 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4695, allocations: 0 / 0.6114 GB, free: 8.141 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.4e-05/0.4695, allocations: 0 / 0.6114 GB, free: 8.141 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000664/0.4702, allocations: 442.9 kB / 0.6119 GB, free: 7.656 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.4702, allocations: 12.88 kB / 0.6119 GB, free: 7.645 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.976e-05/0.4703, allocations: 12.84 kB / 0.6119 GB, free: 7.633 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000331/0.4706, allocations: 224 kB / 0.6121 GB, free: 7.375 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.4706, allocations: 384 / 0.6121 GB, free: 7.375 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.544e-05/0.4707, allocations: 8.359 kB / 0.6121 GB, free: 7.367 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000165/0.4709, allocations: 67.94 kB / 0.6122 GB, free: 7.289 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.4709, allocations: 192 / 0.6122 GB, free: 7.289 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.4709, allocations: 11.94 kB / 0.6122 GB, free: 7.277 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.4709, allocations: 0 / 0.6122 GB, free: 7.277 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.123e-05/0.471, allocations: 27.92 kB / 0.6122 GB, free: 7.25 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003872/0.4714, allocations: 273 kB / 0.6125 GB, free: 6.934 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000192/0.4716, allocations: 66.61 kB / 0.6125 GB, free: 6.859 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.544e-05/0.4717, allocations: 28.91 kB / 0.6126 GB, free: 6.828 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.4717, allocations: 8 kB / 0.6126 GB, free: 6.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001671/0.4719, allocations: 79.31 kB / 0.6126 GB, free: 6.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.4719, allocations: 0 / 0.6126 GB, free: 6.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=10): time 0.0006139/0.4725, allocations: 205.1 kB / 0.6128 GB, free: 6.523 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.302e-05/0.4726, allocations: 77.11 kB / 0.6129 GB, free: 6.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/0.4728, allocations: 170.1 kB / 0.6131 GB, free: 6.254 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.4728, allocations: 33.7 kB / 0.6131 GB, free: 6.215 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.524e-05/0.4729, allocations: 100.1 kB / 0.6132 GB, free: 6.113 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.933e-05/0.4729, allocations: 35.5 kB / 0.6132 GB, free: 6.078 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.4729, allocations: 0 / 0.6132 GB, free: 6.078 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4731, allocations: 326.8 kB / 0.6135 GB, free: 5.75 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.394e-05/0.4732, allocations: 27.97 kB / 0.6136 GB, free: 5.723 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.4733, allocations: 54.5 kB / 0.6136 GB, free: 5.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001552/0.4734, allocations: 82.61 kB / 0.6137 GB, free: 5.574 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.4734, allocations: 0 / 0.6137 GB, free: 5.574 MB / 426.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002377/0.4737, allocations: 128.2 kB / 0.6138 GB, free: 5.445 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.4737, allocations: 8 kB / 0.6138 GB, free: 5.438 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.4737, allocations: 0 / 0.6138 GB, free: 5.438 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.4737, allocations: 0 / 0.6138 GB, free: 5.438 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.4739, allocations: 23.92 kB / 0.6139 GB, free: 5.414 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.779e-06/0.4739, allocations: 4 kB / 0.6139 GB, free: 5.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.291e-05/0.4739, allocations: 128 / 0.6139 GB, free: 5.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.474, allocations: 15.94 kB / 0.6139 GB, free: 5.395 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001071/0.4741, allocations: 131.7 kB / 0.614 GB, free: 5.258 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.061e-05/0.4741, allocations: 7.906 kB / 0.614 GB, free: 5.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002683/0.4744, allocations: 130.4 kB / 0.6141 GB, free: 5.117 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.4744, allocations: 0 / 0.6141 GB, free: 5.117 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4744, allocations: 0 / 0.6141 GB, free: 5.117 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.4744, allocations: 3.984 kB / 0.6141 GB, free: 5.113 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005318/0.4749, allocations: 447.1 kB / 0.6146 GB, free: 4.617 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.475, allocations: 0 / 0.6146 GB, free: 4.617 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.225e-05/0.475, allocations: 16 kB / 0.6146 GB, free: 4.602 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.475, allocations: 0 / 0.6146 GB, free: 4.602 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.475, allocations: 8 kB / 0.6146 GB, free: 4.594 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.151e-06/0.4751, allocations: 3.938 kB / 0.6146 GB, free: 4.59 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.4751, allocations: 7.875 kB / 0.6146 GB, free: 4.582 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002738/0.4753, allocations: 220.3 kB / 0.6148 GB, free: 4.348 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.442e-05/0.4754, allocations: 96.91 kB / 0.6149 GB, free: 4.234 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.4755, allocations: 0 / 0.6149 GB, free: 4.234 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.254e-05/0.4756, allocations: 11.94 kB / 0.6149 GB, free: 4.223 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.147e-05/0.4756, allocations: 7.984 kB / 0.6149 GB, free: 4.215 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.4756, allocations: 7.984 kB / 0.6149 GB, free: 4.207 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001281/0.4758, allocations: 139.1 kB / 0.6151 GB, free: 4.07 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4758, allocations: 0 / 0.6151 GB, free: 4.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003404/0.4761, allocations: 59.88 kB / 0.6151 GB, free: 4.012 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001278/0.4774, allocations: 0.5746 MB / 0.6157 GB, free: 3.625 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002224/0.4776, allocations: 75.91 kB / 0.6158 GB, free: 3.551 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4776, allocations: 0 / 0.6158 GB, free: 3.551 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 8.667e-05/0.4777, allocations: 39.92 kB / 0.6158 GB, free: 3.512 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.4781, allocations: 37.39 kB / 0.6158 GB, free: 3.477 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004871/0.4786, allocations: 260 kB / 0.6161 GB, free: 3.188 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.4789, allocations: 0.7004 MB / 0.6168 GB, free: 2.461 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.999e-05/0.479, allocations: 23.42 kB / 0.6168 GB, free: 2.438 MB / 426.7 MB Notification: Performance of SimCode: time 4.41e-07/0.479, allocations: 4 kB / 0.6168 GB, free: 2.434 MB / 426.7 MB Notification: Performance of Templates: time 0.004929/0.4839, allocations: 2.552 MB / 0.6193 GB, free: 15.89 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab.makefile make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab.makefile clang++ -std=c++14 -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Resources/Data/Tables""-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Resources/Data/Tables" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:28: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:5: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Resources/Data/Tables/usertab.c:14: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:461:18: error: no matching function for call to 'mydummyfunc' dummy_y__ext = mydummyfunc(ConstArray(dummy_u_).getData()); ^~~~~~~~~~~ ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:6:8: note: candidate function not viable: 1st argument ('const double *') would lose const qualifier double mydummyfunc(double* dummy_in) { ^ 4 warnings and 1 error generated. make: *** [: OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o] Error 1