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: translateModel(ModelicaTest.Tables.CombiTable1Ds.Test25_usertab,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|t_new.y.2.|d_t_new.y|clock.y|realExpression.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1Ds.Test25_usertab") translateModel(ModelicaTest.Tables.CombiTable1Ds.Test25_usertab,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|t_new.y.2.|d_t_new.y|clock.y|realExpression.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1Ds.Test25_usertab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001036/0.001036, allocations: 181.9 kB / 17.41 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.514/1.514, allocations: 205.4 MB / 223.6 MB, free: 8.945 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.0007843/0.0007844, allocations: 97 kB / 271.9 MB, free: 8.234 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.3734/0.3734, allocations: 43.56 MB / 363.8 MB, free: 52.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000434/0.000434, allocations: 12 kB / 432.6 MB, free: 5.879 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.138, allocations: 58.85 MB / 491.4 MB, free: 10.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3279/0.466, allocations: 86.54 MB / 0.5644 GB, free: 15.87 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.4662, allocations: 79.95 kB / 0.5645 GB, free: 15.79 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009781/0.476, allocations: 3.767 MB / 0.5682 GB, free: 12.06 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4761, allocations: 0 / 0.5682 GB, free: 12.06 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.4761, allocations: 4 kB / 0.5682 GB, free: 12.06 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.0003997/0.4765, allocations: 375 kB / 0.5685 GB, free: 11.64 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.4765, allocations: 8.031 kB / 0.5686 GB, free: 11.64 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.843e-05/0.4766, allocations: 12.84 kB / 0.5686 GB, free: 11.62 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002245/0.4768, allocations: 204 kB / 0.5688 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-06/0.4768, allocations: 8.25 kB / 0.5688 GB, free: 11.38 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.283e-05/0.4769, allocations: 5.594 kB / 0.5688 GB, free: 11.38 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001706/0.4771, allocations: 71.94 kB / 0.5688 GB, free: 11.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.4771, allocations: 192 / 0.5688 GB, free: 11.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.4771, allocations: 7.938 kB / 0.5689 GB, free: 11.29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.4771, allocations: 4 kB / 0.5689 GB, free: 11.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001137/0.4772, allocations: 35.97 kB / 0.5689 GB, free: 11.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003768/0.4776, allocations: 292.8 kB / 0.5692 GB, free: 10.91 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001272/0.4778, allocations: 62.48 kB / 0.5692 GB, free: 10.84 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.207e-05/0.4778, allocations: 28.97 kB / 0.5693 GB, free: 10.81 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.4779, allocations: 0 / 0.5693 GB, free: 10.81 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.4779, allocations: 34.56 kB / 0.5693 GB, free: 10.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 8.41e-07/0.4779, allocations: 0 / 0.5693 GB, free: 10.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.000577/0.4785, allocations: 189.2 kB / 0.5695 GB, free: 10.58 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.344e-05/0.4785, allocations: 87.89 kB / 0.5696 GB, free: 10.48 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.4787, allocations: 133.8 kB / 0.5697 GB, free: 10.34 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.4787, allocations: 25.7 kB / 0.5697 GB, free: 10.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.628e-05/0.4788, allocations: 96.12 kB / 0.5698 GB, free: 10.21 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.372e-05/0.4788, allocations: 27.64 kB / 0.5698 GB, free: 10.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.002e-06/0.4788, allocations: 0 / 0.5698 GB, free: 10.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.4789, allocations: 326.9 kB / 0.5701 GB, free: 9.852 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.723e-05/0.479, allocations: 23.98 kB / 0.5702 GB, free: 9.828 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.919e-05/0.4791, allocations: 45.69 kB / 0.5702 GB, free: 9.777 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001448/0.4793, allocations: 64.83 kB / 0.5703 GB, free: 9.711 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.82e-07/0.4793, allocations: 0 / 0.5703 GB, free: 9.711 MB / 394.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002045/0.4795, allocations: 105.6 kB / 0.5704 GB, free: 9.602 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.4795, allocations: 4 kB / 0.5704 GB, free: 9.598 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.4795, allocations: 0 / 0.5704 GB, free: 9.598 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.4795, allocations: 0 / 0.5704 GB, free: 9.598 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.479e-05/0.4796, allocations: 23.92 kB / 0.5704 GB, free: 9.574 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.4796, allocations: 0 / 0.5704 GB, free: 9.574 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.134e-05/0.4797, allocations: 4 kB / 0.5704 GB, free: 9.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.4797, allocations: 8 kB / 0.5704 GB, free: 9.562 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 8.072e-05/0.4798, allocations: 121.8 kB / 0.5705 GB, free: 9.434 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.035e-05/0.4798, allocations: 11.89 kB / 0.5705 GB, free: 9.422 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002805/0.4801, allocations: 114.3 kB / 0.5706 GB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.4801, allocations: 0 / 0.5706 GB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.4801, allocations: 7.984 kB / 0.5706 GB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.4801, allocations: 3.938 kB / 0.5707 GB, free: 9.293 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004332/0.4806, allocations: 386.5 kB / 0.571 GB, free: 8.859 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.4806, allocations: 0 / 0.571 GB, free: 8.859 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.189e-05/0.4807, allocations: 20 kB / 0.571 GB, free: 8.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.4807, allocations: 0 / 0.571 GB, free: 8.84 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.4807, allocations: 4.828 kB / 0.571 GB, free: 8.836 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.4807, allocations: 0.875 kB / 0.571 GB, free: 8.836 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4807, allocations: 0 / 0.571 GB, free: 8.836 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002356/0.4809, allocations: 211.3 kB / 0.5712 GB, free: 8.613 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.555e-05/0.481, allocations: 85.02 kB / 0.5713 GB, free: 8.512 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.83e-05/0.481, allocations: 4 kB / 0.5713 GB, free: 8.508 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.073e-05/0.4811, allocations: 11.98 kB / 0.5713 GB, free: 8.496 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.539e-05/0.4811, allocations: 3.938 kB / 0.5713 GB, free: 8.492 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.4811, allocations: 8.359 kB / 0.5714 GB, free: 8.484 MB / 394.7 MB Notification: Performance of sorting global known variables: time 8.338e-05/0.4812, allocations: 117.2 kB / 0.5715 GB, free: 8.371 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4812, allocations: 0 / 0.5715 GB, free: 8.371 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002345/0.4815, allocations: 28 kB / 0.5715 GB, free: 8.344 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.0008908/0.4824, allocations: 451.8 kB / 0.5719 GB, free: 8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002059/0.4826, allocations: 75.89 kB / 0.572 GB, free: 7.926 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.4826, allocations: 0 / 0.572 GB, free: 7.926 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.361e-05/0.4827, allocations: 31.98 kB / 0.572 GB, free: 7.895 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002659/0.483, allocations: 15.98 kB / 0.572 GB, free: 7.879 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000403/0.4834, allocations: 233 kB / 0.5723 GB, free: 7.621 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.4837, allocations: 0.6926 MB / 0.5729 GB, free: 6.902 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.009e-05/0.4837, allocations: 11.44 kB / 0.573 GB, free: 6.891 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4837, allocations: 4 kB / 0.573 GB, free: 6.887 MB / 394.7 MB Notification: Performance of Templates: time 0.003173/0.4869, allocations: 1.749 MB / 0.5747 GB, free: 5.141 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1Ds.Test25_usertab.makefile make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1Ds.Test25_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 3.2.3+maint.om/Resources/Data/Tables" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables" -DMEASURETIME_PROFILEBLOCKS -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:279: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) { ^ 4 warnings and 1 error generated. make: *** [: OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1Ds.Test25_usertabCalcHelperMain.o] Error 1