Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Tables.CombiTimeTable.Test66_usertab,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.nextTimeEvent|t_new.y.1.|d_t_new.y|realExpression.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab") Notification: Performance of loadModel(ModelicaTest): time 1.877/1.877, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.142e-05/3.167e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08835/0.08841, allocations: 48.7 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3381/0.4266, allocations: 75.88 MB / 402.4 MB, free: 10.04 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/0.4268, allocations: 69.53 kB / 402.5 MB, free: 10.04 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01474/0.4416, allocations: 3.861 MB / 406.3 MB, free: 8.555 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.147e-06/0.4417, allocations: 3.984 kB / 406.4 MB, free: 8.551 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.963e-05/0.4417, allocations: 3.844 kB / 406.4 MB, free: 8.551 MB / 314.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.000368/0.4421, allocations: 401.9 kB / 406.7 MB, free: 8.133 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.4421, allocations: 15.38 kB / 406.8 MB, free: 8.129 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.588e-05/0.4422, allocations: 7.75 kB / 406.8 MB, free: 8.125 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.4424, allocations: 198.2 kB / 407 MB, free: 7.906 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.4424, allocations: 3.625 kB / 407 MB, free: 7.906 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.282e-05/0.4424, allocations: 3.844 kB / 407 MB, free: 7.906 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001179/0.4426, allocations: 61.95 kB / 407 MB, free: 7.852 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.4426, allocations: 0 / 407 MB, free: 7.852 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.4426, allocations: 0 / 407 MB, free: 7.852 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.469e-06/0.4426, allocations: 7.844 kB / 407 MB, free: 7.848 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.651e-05/0.4427, allocations: 22.67 kB / 407.1 MB, free: 7.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003315/0.4431, allocations: 288.1 kB / 407.3 MB, free: 7.555 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.132e-05/0.4432, allocations: 40.52 kB / 407.4 MB, free: 7.523 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.839e-05/0.4432, allocations: 16.05 kB / 407.4 MB, free: 7.516 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.956e-05/0.4433, allocations: 0 / 407.4 MB, free: 7.516 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001153/0.4434, allocations: 66.36 kB / 407.5 MB, free: 7.453 MB / 314.7 MB Notification: Performance of pre-optimization done (n=5): time 2.448e-06/0.4434, allocations: 0 / 407.5 MB, free: 7.453 MB / 314.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003961/0.4438, allocations: 116.2 kB / 407.6 MB, free: 7.398 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.4438, allocations: 85.03 kB / 407.7 MB, free: 7.297 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.444, allocations: 130.8 kB / 407.8 MB, free: 7.195 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.444, allocations: 37.55 kB / 407.8 MB, free: 7.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.694e-05/0.4441, allocations: 154.4 kB / 408 MB, free: 7.012 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.193e-05/0.4441, allocations: 11.59 kB / 408 MB, free: 7.004 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.908e-06/0.4441, allocations: 7 kB / 408 MB, free: 7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.87e-05/0.4442, allocations: 318.6 kB / 408.3 MB, free: 6.684 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.738e-05/0.4442, allocations: 19 kB / 408.3 MB, free: 6.684 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.31e-05/0.4443, allocations: 35.38 kB / 408.4 MB, free: 6.668 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.607e-05/0.4444, allocations: 51.5 kB / 408.4 MB, free: 6.633 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.846e-06/0.4444, allocations: 3.938 kB / 408.4 MB, free: 6.629 MB / 314.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002182/0.4446, allocations: 127.6 kB / 408.5 MB, free: 6.551 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.4447, allocations: 29.67 kB / 408.6 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.984e-06/0.4447, allocations: 4.031 kB / 408.6 MB, free: 6.516 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.4447, allocations: 3.875 kB / 408.6 MB, free: 6.516 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.033e-05/0.4448, allocations: 11.67 kB / 408.6 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.4448, allocations: 0 / 408.6 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.228e-05/0.4449, allocations: 7.406 kB / 408.6 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.4449, allocations: 7.828 kB / 408.6 MB, free: 6.508 MB / 314.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: 3 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * 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 5.888e-05/0.445, allocations: 108.3 kB / 408.7 MB, free: 6.402 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/0.4451, allocations: 3.906 kB / 408.7 MB, free: 6.398 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002398/0.4453, allocations: 109.4 kB / 408.8 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.756e-06/0.4453, allocations: 0 / 408.8 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.145e-06/0.4453, allocations: 0 / 408.8 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.042e-06/0.4454, allocations: 96 / 408.8 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003509/0.4457, allocations: 361.3 kB / 409.2 MB, free: 6.012 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.653e-06/0.4457, allocations: 3.984 kB / 409.2 MB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.446e-05/0.4458, allocations: 7.719 kB / 409.2 MB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.912e-06/0.4458, allocations: 0 / 409.2 MB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.4458, allocations: 0 / 409.2 MB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.211e-06/0.4458, allocations: 3.875 kB / 409.2 MB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.4459, allocations: 4 kB / 409.2 MB, free: 6.004 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001875/0.4461, allocations: 184.4 kB / 409.4 MB, free: 5.855 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.347e-05/0.4461, allocations: 81.02 kB / 409.4 MB, free: 5.758 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.931e-05/0.4461, allocations: 3.875 kB / 409.5 MB, free: 5.758 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.4463, allocations: 7.672 kB / 409.5 MB, free: 5.754 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.098e-05/0.4463, allocations: 7.844 kB / 409.5 MB, free: 5.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.301e-05/0.4463, allocations: 3.812 kB / 409.5 MB, free: 5.75 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.78e-05/0.4464, allocations: 114.8 kB / 409.6 MB, free: 5.664 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.63e-07/0.4464, allocations: 0 / 409.6 MB, free: 5.664 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003888/0.4468, allocations: 53.55 kB / 409.6 MB, free: 5.645 MB / 314.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: 2 ($whenCondition1,t_new.nextTimeEvent) * Number of discrete states: 1 (t_new.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001325/0.4482, allocations: 422.4 kB / 410 MB, free: 5.395 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001975/0.4484, allocations: 114.9 kB / 410.2 MB, free: 5.328 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4484, allocations: 0 / 410.2 MB, free: 5.328 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.971e-05/0.4485, allocations: 26.73 kB / 410.2 MB, free: 5.32 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.4488, allocations: 17.75 kB / 410.2 MB, free: 5.316 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003015/0.4491, allocations: 136.1 kB / 410.3 MB, free: 5.191 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000131/0.4492, allocations: 0.6922 MB / 411 MB, free: 4.488 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.347e-05/0.4493, allocations: 19.14 kB / 411 MB, free: 4.48 MB / 314.7 MB Notification: Performance of SimCode: time 1.461e-06/0.4493, allocations: 0 / 411 MB, free: 4.48 MB / 314.7 MB Notification: Performance of Templates: time 0.004147/0.4535, allocations: 2.024 MB / 413.1 MB, free: 3.441 MB / 314.7 MB make -j1 -f ModelicaTest_3.2.1_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/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp\nIn file included from OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:28:\nIn file included from ./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:5:\nIn file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables/usertab.c:14:\n/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.cpp:28:\n./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabFunctions.cpp:364:18: error: no matching function for call to \'mydummyfunc\'\n dummy_y__ext = mydummyfunc(ConstArray(dummy_u_).getData());\n ^~~~~~~~~~~\n./OMCppModelicaTest_3.2.1_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.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o\' failed\nmake: *** [OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertabCalcHelperMain.o] Error 1\n'