Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1D.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.CombiTable1D.Test25_usertab,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|clock.y|realExpression.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertab") translateModel(ModelicaTest.Tables.CombiTable1D.Test25_usertab,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|clock.y|realExpression.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001588/0.001594, allocations: 183.9 kB / 16.4 MB, free: 5.75 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.051/2.051, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.0012/0.0012, allocations: 88.42 kB / 270.9 MB, free: 8.355 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.523/0.523, allocations: 43.56 MB / 362.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004706/0.0004708, allocations: 12 kB / 431.4 MB, free: 6.152 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1295, allocations: 58.85 MB / 490.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1D.Test25_usertab): time 0.002473/0.132, allocations: 1.267 MB / 491.5 MB, free: 9.941 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008622/0.1329, allocations: 311.6 kB / 491.8 MB, free: 9.633 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.484e-05/0.133, allocations: 0 / 491.8 MB, free: 9.633 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002289/0.1332, allocations: 19.92 kB / 491.8 MB, free: 9.613 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001824/0.1334, allocations: 31.84 kB / 491.8 MB, free: 9.582 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00043/0.1339, allocations: 83.89 kB / 491.9 MB, free: 9.5 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001573/0.134, allocations: 39.89 kB / 492 MB, free: 9.461 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.1342, allocations: 12.17 kB / 492 MB, free: 9.449 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.738e-05/0.1342, allocations: 19.91 kB / 492 MB, free: 9.43 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.792e-05/0.1343, allocations: 15.88 kB / 492 MB, free: 9.414 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.86e-05/0.1343, allocations: 0 / 492 MB, free: 9.414 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001509/0.1345, allocations: 35.92 kB / 492 MB, free: 9.379 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.788e-05/0.1346, allocations: 15.91 kB / 492.1 MB, free: 9.363 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.057e-05/0.1346, allocations: 37.7 kB / 492.1 MB, free: 9.32 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001865/0.1348, allocations: 59.91 kB / 492.2 MB, free: 9.262 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.1348, allocations: 0 / 492.2 MB, free: 9.262 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1348, allocations: 4 kB / 492.2 MB, free: 9.258 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.1349, allocations: 0 / 492.2 MB, free: 9.258 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005876/0.1355, allocations: 379.3 kB / 492.5 MB, free: 8.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.1355, allocations: 12.03 kB / 492.5 MB, free: 8.828 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.752e-05/0.1356, allocations: 7.859 kB / 492.5 MB, free: 8.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.1358, allocations: 194.9 kB / 492.7 MB, free: 8.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.1358, allocations: 4 kB / 492.7 MB, free: 8.586 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.132e-05/0.1359, allocations: 0 / 492.7 MB, free: 8.586 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002103/0.1361, allocations: 67.39 kB / 492.8 MB, free: 8.508 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.1361, allocations: 4 kB / 492.8 MB, free: 8.504 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.1362, allocations: 4 kB / 492.8 MB, free: 8.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.1362, allocations: 0 / 492.8 MB, free: 8.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001756/0.1364, allocations: 43.86 kB / 492.9 MB, free: 8.457 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004947/0.1369, allocations: 277 kB / 493.1 MB, free: 8.137 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001436/0.137, allocations: 46.55 kB / 493.2 MB, free: 8.082 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.1371, allocations: 0 / 493.2 MB, free: 8.082 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.1371, allocations: 34.56 kB / 493.2 MB, free: 8.039 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 1.673e-06/0.1371, allocations: 0 / 493.2 MB, free: 8.039 MB / 378.7 MB Notification: Performance of matching and sorting (n=6): time 0.000886/0.138, allocations: 173.4 kB / 493.4 MB, free: 7.863 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.953e-05/0.1381, allocations: 85.11 kB / 493.5 MB, free: 7.762 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.1383, allocations: 129.7 kB / 493.6 MB, free: 7.625 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.1383, allocations: 37.58 kB / 493.6 MB, free: 7.582 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.179e-05/0.1384, allocations: 162.5 kB / 493.8 MB, free: 7.422 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/0.1384, allocations: 7.812 kB / 493.8 MB, free: 7.414 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.896e-06/0.1384, allocations: 4 kB / 493.8 MB, free: 7.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1386, allocations: 322.8 kB / 494.1 MB, free: 7.086 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.1387, allocations: 27.92 kB / 494.1 MB, free: 7.059 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/0.1389, allocations: 33.7 kB / 494.2 MB, free: 7.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/0.139, allocations: 36.02 kB / 494.2 MB, free: 6.984 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.139, allocations: 0 / 494.2 MB, free: 6.984 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003335/0.1394, allocations: 93.56 kB / 494.3 MB, free: 6.887 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.1394, allocations: 4 kB / 494.3 MB, free: 6.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1394, allocations: 4 kB / 494.3 MB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.1395, allocations: 3.953 kB / 494.3 MB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.1396, allocations: 24.17 kB / 494.3 MB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.1397, allocations: 0 / 494.3 MB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.277e-05/0.1397, allocations: 15.98 kB / 494.3 MB, free: 6.836 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.1398, allocations: 4 kB / 494.3 MB, free: 6.832 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 (6): * Single equations (assignments): 6 * 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.0001118/0.1399, allocations: 117.8 kB / 494.5 MB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.253e-05/0.1399, allocations: 7.906 kB / 494.5 MB, free: 6.699 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004049/0.1404, allocations: 110 kB / 494.6 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.1404, allocations: 3.953 kB / 494.6 MB, free: 6.582 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1404, allocations: 0 / 494.6 MB, free: 6.582 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.1404, allocations: 0 / 494.6 MB, free: 6.582 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007053/0.1411, allocations: 378.5 kB / 495 MB, free: 6.156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1411, allocations: 0 / 495 MB, free: 6.156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.1413, allocations: 12.28 kB / 495 MB, free: 6.145 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.855e-06/0.1413, allocations: 3.953 kB / 495 MB, free: 6.141 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.1413, allocations: 4 kB / 495 MB, free: 6.137 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.1413, allocations: 3.984 kB / 495 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1413, allocations: 0 / 495 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003982/0.1417, allocations: 203.3 kB / 495.2 MB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.784e-05/0.1418, allocations: 89.02 kB / 495.3 MB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.841e-05/0.1419, allocations: 3.953 kB / 495.3 MB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.142, allocations: 11.98 kB / 495.3 MB, free: 5.797 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.027e-05/0.142, allocations: 4 kB / 495.3 MB, free: 5.793 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.1421, allocations: 192 / 495.3 MB, free: 5.793 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001133/0.1422, allocations: 107.8 kB / 495.4 MB, free: 5.688 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1422, allocations: 0 / 495.4 MB, free: 5.688 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003705/0.1426, allocations: 24 kB / 495.4 MB, free: 5.664 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 (6): * Single equations (assignments): 6 * 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.001358/0.1439, allocations: 455.3 kB / 495.9 MB, free: 5.258 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004215/0.1444, allocations: 71.89 kB / 495.9 MB, free: 5.188 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.1444, allocations: 0 / 495.9 MB, free: 5.188 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001506/0.1446, allocations: 35.98 kB / 496 MB, free: 5.152 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.1449, allocations: 11.98 kB / 496 MB, free: 5.141 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005554/0.1455, allocations: 210.2 kB / 496.2 MB, free: 4.902 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/0.146, allocations: 0.7004 MB / 496.9 MB, free: 4.176 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.713e-05/0.1461, allocations: 19.38 kB / 496.9 MB, free: 4.16 MB / 378.7 MB Notification: Performance of SimCode: time 9.61e-07/0.1461, allocations: 0 / 496.9 MB, free: 4.16 MB / 378.7 MB Notification: Performance of Templates: time 0.005607/0.1517, allocations: 1.727 MB / 498.6 MB, free: 2.434 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertab.makefile make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1D.Test25_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=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/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.CombiTable1D.Test25_usertabCalcHelperMain.o OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertabCalcHelperMain.cpp\nIn file included from OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertabCalcHelperMain.cpp:28:\nIn file included from ./OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1D.Test25_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.CombiTable1D.Test25_usertabCalcHelperMain.cpp:28:\n./OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertabFunctions.cpp:300: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.CombiTable1D.Test25_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.CombiTable1D.Test25_usertabCalcHelperMain.o\' failed\nmake: *** [OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1D.Test25_usertabCalcHelperMain.o] Error 1\n'