Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTable1Dv.Test25_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.CombiTable1Dv.Test25_usertab,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|clock.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTable1Dv.Test25_usertab") translateModel(ModelicaTest.Tables.CombiTable1Dv.Test25_usertab,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|clock.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTable1Dv.Test25_usertab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 195.7 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.284/1.284, allocations: 226.5 MB / 243.4 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008125/0.0008126, allocations: 106.2 kB / 295.5 MB, free: 6.641 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3373/0.3373, allocations: 44.82 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003045/0.0003049, allocations: 8 kB / 465.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3757, allocations: 62.96 MB / 0.5159 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1Dv.Test25_usertab): time 0.001704/0.3775, allocations: 1.296 MB / 0.5171 GB, free: 36.23 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.000757/0.3783, allocations: 0.5059 MB / 0.5176 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.247e-05/0.3783, allocations: 4 kB / 0.5176 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002097/0.3785, allocations: 27.69 kB / 0.5177 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002053/0.3788, allocations: 58.48 kB / 0.5177 GB, free: 35.85 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002504/0.379, allocations: 102.7 kB / 0.5178 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000115/0.3791, allocations: 57.98 kB / 0.5179 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.3793, allocations: 20.8 kB / 0.5179 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.461e-05/0.3793, allocations: 23.02 kB / 0.5179 GB, free: 35.75 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.591e-05/0.3794, allocations: 31.95 kB / 0.518 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.551e-05/0.3794, allocations: 2.906 kB / 0.518 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001348/0.3795, allocations: 83.73 kB / 0.518 GB, free: 35.7 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.012e-05/0.3796, allocations: 13.42 kB / 0.518 GB, free: 35.7 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.043e-05/0.3796, allocations: 44.14 kB / 0.5181 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.3798, allocations: 101.4 kB / 0.5182 GB, free: 35.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3798, allocations: 0 / 0.5182 GB, free: 35.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.049e-06/0.3798, allocations: 3.328 kB / 0.5182 GB, free: 35.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.3798, allocations: 0 / 0.5182 GB, free: 35.62 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004239/0.3803, allocations: 398.5 kB / 0.5186 GB, free: 35.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.3803, allocations: 9.844 kB / 0.5186 GB, free: 35.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.01e-05/0.3804, allocations: 7.812 kB / 0.5186 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000181/0.3806, allocations: 195.2 kB / 0.5188 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.3806, allocations: 3.406 kB / 0.5188 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.112e-05/0.3806, allocations: 4.375 kB / 0.5188 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001434/0.3808, allocations: 73.72 kB / 0.5188 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.3808, allocations: 0 / 0.5188 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.3808, allocations: 0 / 0.5188 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.3808, allocations: 2.812 kB / 0.5189 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.547e-05/0.3809, allocations: 28.62 kB / 0.5189 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004155/0.3813, allocations: 301.8 kB / 0.5192 GB, free: 34.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001024/0.3814, allocations: 54.03 kB / 0.5192 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.436e-05/0.3815, allocations: 23.31 kB / 0.5192 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.3815, allocations: 2.812 kB / 0.5192 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.849e-05/0.3815, allocations: 37.94 kB / 0.5193 GB, free: 34.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 2.195e-06/0.3816, allocations: 3.984 kB / 0.5193 GB, free: 34.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0005771/0.3821, allocations: 187.6 kB / 0.5195 GB, free: 34.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.22e-05/0.3822, allocations: 84.34 kB / 0.5195 GB, free: 34.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.3823, allocations: 144.8 kB / 0.5197 GB, free: 34.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.133e-05/0.3823, allocations: 33.58 kB / 0.5197 GB, free: 34.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.093e-05/0.3824, allocations: 101.5 kB / 0.5198 GB, free: 34.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.745e-05/0.3824, allocations: 22 kB / 0.5198 GB, free: 34.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.3824, allocations: 0 / 0.5198 GB, free: 34.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.986e-05/0.3825, allocations: 325.2 kB / 0.5201 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.607e-05/0.3826, allocations: 29.22 kB / 0.5202 GB, free: 33.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.217e-05/0.3827, allocations: 52.31 kB / 0.5202 GB, free: 33.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.3828, allocations: 85.69 kB / 0.5203 GB, free: 33.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.3828, allocations: 0 / 0.5203 GB, free: 33.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001894/0.383, allocations: 111.8 kB / 0.5204 GB, free: 33.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.383, allocations: 11.3 kB / 0.5204 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3831, allocations: 0 / 0.5204 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.3831, allocations: 4 kB / 0.5204 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.812e-05/0.3832, allocations: 19.64 kB / 0.5204 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.3832, allocations: 3.938 kB / 0.5204 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.552e-05/0.3832, allocations: 5.875 kB / 0.5205 GB, free: 33.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.3833, allocations: 7.031 kB / 0.5205 GB, free: 33.65 MB / 378.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 6.365e-05/0.3833, allocations: 116.1 kB / 0.5206 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.084e-05/0.3834, allocations: 9.938 kB / 0.5206 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00025/0.3836, allocations: 128.6 kB / 0.5207 GB, free: 33.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.3836, allocations: 0 / 0.5207 GB, free: 33.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3836, allocations: 0 / 0.5207 GB, free: 33.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3836, allocations: 0 / 0.5207 GB, free: 33.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003958/0.384, allocations: 410.1 kB / 0.5211 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3841, allocations: 4 kB / 0.5211 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.151e-05/0.3841, allocations: 22 kB / 0.5211 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.3841, allocations: 0 / 0.5211 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.3841, allocations: 3.938 kB / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3842, allocations: 6.844 kB / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3842, allocations: 0 / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001973/0.3844, allocations: 201.7 kB / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.308e-05/0.3844, allocations: 87.06 kB / 0.5214 GB, free: 32.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.3844, allocations: 7.938 kB / 0.5214 GB, free: 32.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.335e-05/0.3845, allocations: 13.11 kB / 0.5214 GB, free: 32.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.065e-05/0.3846, allocations: 2.75 kB / 0.5214 GB, free: 32.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-06/0.3846, allocations: 2.938 kB / 0.5214 GB, free: 32.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.055e-05/0.3846, allocations: 116.7 kB / 0.5215 GB, free: 32.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3846, allocations: 0 / 0.5215 GB, free: 32.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002735/0.3849, allocations: 38.88 kB / 0.5216 GB, free: 32.74 MB / 378.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.001039/0.386, allocations: 0.4905 MB / 0.5221 GB, free: 32.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002062/0.3862, allocations: 75.84 kB / 0.5221 GB, free: 32.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3862, allocations: 0 / 0.5221 GB, free: 32.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.184e-05/0.3863, allocations: 45.97 kB / 0.5222 GB, free: 32.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.3866, allocations: 17.36 kB / 0.5222 GB, free: 32.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003674/0.387, allocations: 217.4 kB / 0.5224 GB, free: 32.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001341/0.3871, allocations: 0.6949 MB / 0.5231 GB, free: 31.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.188e-05/0.3872, allocations: 22.62 kB / 0.5231 GB, free: 31.56 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3872, allocations: 0 / 0.5231 GB, free: 31.56 MB / 378.7 MB Notification: Performance of Templates: time 0.003507/0.3907, allocations: 2.108 MB / 0.5252 GB, free: 31.31 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTable1Dv.Test25_usertab.makefile make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTable1Dv.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/jenkins/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/jenkins/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.CombiTable1Dv.Test25_usertabCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTable1Dv.Test25_usertabCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTable1Dv.Test25_usertabCalcHelperMain.cpp:28: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTable1Dv.Test25_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.CombiTable1Dv.Test25_usertabCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTable1Dv.Test25_usertabFunctions.cpp:420:18: error: no matching function for call to 'mydummyfunc' dummy_y__ext = mydummyfunc(ConstArray(dummy_u_).getData()); ^~~~~~~~~~~ ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTable1Dv.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_trunk_cpp_ModelicaTest.Tables.CombiTable1Dv.Test25_usertabCalcHelperMain.o] Error 1