Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_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.CombiTimeTable.Test66_usertab,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|realExpression.y",fileNamePrefix="ModelicaTest_3.2.3_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|realExpression.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002366/0.002366, allocations: 181 kB / 13.66 MB, free: 1.664 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.999/1.999, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.00105/0.00105, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2752/0.2752, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.183e-05/3.195e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.117, allocations: 58.86 MB / 484.2 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4948/0.6119, allocations: 87.72 MB / 0.5585 GB, free: 15.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002876/0.6122, allocations: 74.11 kB / 0.5585 GB, free: 15.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02327/0.6355, allocations: 5.218 MB / 0.5636 GB, free: 11.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.6356, allocations: 0 / 0.5636 GB, free: 11.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.6356, allocations: 3.938 kB / 0.5636 GB, free: 11.5 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006083/0.6362, allocations: 396.8 kB / 0.564 GB, free: 11.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.6363, allocations: 12.03 kB / 0.564 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.709e-05/0.6363, allocations: 7.906 kB / 0.564 GB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00037/0.6367, allocations: 203.1 kB / 0.5642 GB, free: 10.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.876e-05/0.6368, allocations: 7.5 kB / 0.5642 GB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.555e-05/0.6368, allocations: 0 / 0.5642 GB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001889/0.637, allocations: 75.94 kB / 0.5643 GB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.637, allocations: 0 / 0.5643 GB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.949e-05/0.6371, allocations: 4 kB / 0.5643 GB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.6371, allocations: 3.984 kB / 0.5643 GB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.634e-05/0.6372, allocations: 28 kB / 0.5643 GB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004888/0.6377, allocations: 293.5 kB / 0.5646 GB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001807/0.6379, allocations: 58.56 kB / 0.5647 GB, free: 10.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.337e-05/0.638, allocations: 16.05 kB / 0.5647 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.638, allocations: 4 kB / 0.5647 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001687/0.6382, allocations: 72.89 kB / 0.5648 GB, free: 10.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 2.154e-06/0.6382, allocations: 0 / 0.5648 GB, free: 10.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0006267/0.6388, allocations: 165.7 kB / 0.5649 GB, free: 10.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.6389, allocations: 85.05 kB / 0.565 GB, free: 10.01 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001936/0.6391, allocations: 141.5 kB / 0.5651 GB, free: 9.883 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.6392, allocations: 25.7 kB / 0.5652 GB, free: 9.852 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.628e-05/0.6393, allocations: 161.2 kB / 0.5653 GB, free: 9.699 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.151e-05/0.6393, allocations: 26.97 kB / 0.5653 GB, free: 9.676 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.295e-06/0.6393, allocations: 3.5 kB / 0.5653 GB, free: 9.676 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.6395, allocations: 314.9 kB / 0.5656 GB, free: 9.359 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.757e-05/0.6396, allocations: 22.44 kB / 0.5657 GB, free: 9.344 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.897e-05/0.6397, allocations: 43.95 kB / 0.5657 GB, free: 9.301 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.812e-05/0.6398, allocations: 27.3 kB / 0.5657 GB, free: 9.281 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.6398, allocations: 0 / 0.5657 GB, free: 9.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002486/0.64, allocations: 103.9 kB / 0.5658 GB, free: 9.191 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.454e-05/0.6401, allocations: 11.39 kB / 0.5658 GB, free: 9.184 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.6401, allocations: 4 kB / 0.5659 GB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.6401, allocations: 0 / 0.5659 GB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.6403, allocations: 23.92 kB / 0.5659 GB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.6403, allocations: 0 / 0.5659 GB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.162e-05/0.6404, allocations: 3 kB / 0.5659 GB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/0.6405, allocations: 4 kB / 0.5659 GB, free: 9.152 MB / 378.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001028/0.6406, allocations: 119.3 kB / 0.566 GB, free: 9.035 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.961e-05/0.6406, allocations: 7.906 kB / 0.566 GB, free: 9.027 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003373/0.641, allocations: 125.4 kB / 0.5661 GB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.641, allocations: 0 / 0.5661 GB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.641, allocations: 3.984 kB / 0.5661 GB, free: 8.922 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.641, allocations: 0 / 0.5661 GB, free: 8.922 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006352/0.6416, allocations: 423.7 kB / 0.5665 GB, free: 8.492 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.6417, allocations: 0 / 0.5665 GB, free: 8.492 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.652e-05/0.6418, allocations: 15.97 kB / 0.5665 GB, free: 8.477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.718e-05/0.6418, allocations: 7.984 kB / 0.5666 GB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.6418, allocations: 3.938 kB / 0.5666 GB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.6418, allocations: 0 / 0.5666 GB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.6419, allocations: 4 kB / 0.5666 GB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003235/0.6422, allocations: 218.3 kB / 0.5668 GB, free: 8.242 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.327e-05/0.6423, allocations: 96.12 kB / 0.5669 GB, free: 8.133 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.802e-05/0.6423, allocations: 4 kB / 0.5669 GB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.6425, allocations: 3.188 kB / 0.5669 GB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.248e-05/0.6425, allocations: 7.984 kB / 0.5669 GB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.6426, allocations: 4 kB / 0.5669 GB, free: 8.117 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001401/0.6427, allocations: 119 kB / 0.567 GB, free: 8.016 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6427, allocations: 0 / 0.567 GB, free: 8.016 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003981/0.6431, allocations: 43.11 kB / 0.567 GB, free: 7.977 MB / 378.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.001437/0.6446, allocations: 477.1 kB / 0.5675 GB, free: 7.562 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002366/0.6448, allocations: 64.36 kB / 0.5675 GB, free: 7.516 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.6449, allocations: 0 / 0.5675 GB, free: 7.516 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.645, allocations: 34.5 kB / 0.5676 GB, free: 7.488 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000379/0.6454, allocations: 33.81 kB / 0.5676 GB, free: 7.465 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004607/0.6458, allocations: 156.1 kB / 0.5678 GB, free: 7.293 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.6462, allocations: 0.7159 MB / 0.5685 GB, free: 6.551 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.36e-05/0.6463, allocations: 18.81 kB / 0.5685 GB, free: 6.535 MB / 378.7 MB Notification: Performance of SimCode: time 7.61e-07/0.6463, allocations: 384 / 0.5685 GB, free: 6.535 MB / 378.7 MB Notification: Performance of Templates: time 0.006163/0.6524, allocations: 2.189 MB / 0.5706 GB, free: 4.359 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab.makefile make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -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/c/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.CombiTimeTable.Test66_usertabCalcHelperMain.o OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp\nIn file included from OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:28:\nIn file included from ./OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:5:\nIn file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables/usertab.c:14:\n/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]\n {"TestTable_1D_Time", TestTable_1D_Time, 0, {6, 2}}\n ^\n/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]\n ,{"TestTable_1D_a" , TestTable_1D_a, 1, {4, 2}}\n ^\n/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]\n ,{"TestTable_1D_b" , TestTable_1D_b, 1, {5, 3}}\n ^\n/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]\n ,{"TestTable_2D" , TestTable_2D, 2, {5, 4}}\n ^\nIn file included from OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:28:\n./OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:342:18: error: no matching function for call to \'mydummyfunc\'\n dummy_y__ext = mydummyfunc(ConstArray(dummy_u_).getData());\n ^~~~~~~~~~~\n./OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:6:8: note: candidate function not viable: 1st argument (\'const double *\') would lose const qualifier\ndouble mydummyfunc(double* dummy_in) {\n ^\n4 warnings and 1 error generated.\n: recipe for target \'OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o\' failed\nmake: *** [OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o] Error 1\n'