Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test66_usertab.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002931/0.002931, allocations: 169 kB / 8.142 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.647/1.647, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001323/0.001323, allocations: 89.5 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2845/0.2845, allocations: 43.49 MB / 353.2 MB, free: 2.027 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.502e-05/1.515e-05, allocations: 4 kB / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.2905, allocations: 58.84 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1711/0.4616, allocations: 86.99 MB / 0.5503 GB, free: 12.09 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003548/0.462, allocations: 83.88 kB / 0.5504 GB, free: 12.01 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03162/0.4937, allocations: 4.827 MB / 0.5551 GB, free: 7.188 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.967e-05/0.4938, allocations: 11.94 kB / 0.5551 GB, free: 7.176 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.0007361/0.4945, allocations: 394 kB / 0.5555 GB, free: 6.746 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.4946, allocations: 12.03 kB / 0.5555 GB, free: 6.734 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.481e-05/0.4947, allocations: 11.91 kB / 0.5555 GB, free: 6.723 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005409/0.4952, allocations: 202.9 kB / 0.5557 GB, free: 6.484 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.4953, allocations: 0 / 0.5557 GB, free: 6.484 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.92e-05/0.4953, allocations: 7.906 kB / 0.5557 GB, free: 6.477 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001856/0.4955, allocations: 27.98 kB / 0.5558 GB, free: 6.449 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002189/0.4958, allocations: 71.33 kB / 0.5558 GB, free: 6.367 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.4958, allocations: 0 / 0.5558 GB, free: 6.367 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.013e-05/0.4958, allocations: 0 / 0.5558 GB, free: 6.367 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.4959, allocations: 4 kB / 0.5558 GB, free: 6.363 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006434/0.4965, allocations: 261.4 kB / 0.5561 GB, free: 6.07 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001895/0.4967, allocations: 45.7 kB / 0.5561 GB, free: 6.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.706e-05/0.4968, allocations: 16.98 kB / 0.5561 GB, free: 6 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.973e-05/0.4969, allocations: 7.984 kB / 0.5561 GB, free: 5.992 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001861/0.4971, allocations: 67.33 kB / 0.5562 GB, free: 5.914 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 6.392e-06/0.4971, allocations: 0 / 0.5562 GB, free: 5.914 MB / 394.7 MB Notification: Performance of matching and sorting (n=9): time 0.000826/0.498, allocations: 141.2 kB / 0.5563 GB, free: 5.77 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.897e-05/0.4981, allocations: 81.11 kB / 0.5564 GB, free: 5.672 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002299/0.4983, allocations: 152.3 kB / 0.5566 GB, free: 5.52 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.4984, allocations: 25.7 kB / 0.5566 GB, free: 5.488 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.663e-05/0.4984, allocations: 150.6 kB / 0.5567 GB, free: 5.34 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.078e-05/0.4985, allocations: 23.66 kB / 0.5568 GB, free: 5.316 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.774e-06/0.4985, allocations: 0 / 0.5568 GB, free: 5.316 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.4987, allocations: 318.7 kB / 0.5571 GB, free: 4.996 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.128e-05/0.4987, allocations: 20 kB / 0.5571 GB, free: 4.977 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.211e-05/0.4989, allocations: 46.52 kB / 0.5571 GB, free: 4.922 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.578e-05/0.499, allocations: 28.02 kB / 0.5572 GB, free: 4.895 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.499, allocations: 0 / 0.5572 GB, free: 4.895 MB / 394.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002739/0.4993, allocations: 89.61 kB / 0.5572 GB, free: 4.801 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.4993, allocations: 8 kB / 0.5572 GB, free: 4.793 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.4993, allocations: 0 / 0.5572 GB, free: 4.793 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.4993, allocations: 0 / 0.5572 GB, free: 4.793 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.4995, allocations: 23.92 kB / 0.5573 GB, free: 4.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.4996, allocations: 0 / 0.5573 GB, free: 4.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.721e-05/0.4997, allocations: 11.97 kB / 0.5573 GB, free: 4.758 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.4997, allocations: 0 / 0.5573 GB, free: 4.758 MB / 394.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 8.639e-05/0.4998, allocations: 31.11 kB / 0.5573 GB, free: 4.723 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.117e-05/0.4998, allocations: 7.906 kB / 0.5573 GB, free: 4.715 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004071/0.5003, allocations: 114.3 kB / 0.5574 GB, free: 4.594 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.5003, allocations: 0 / 0.5574 GB, free: 4.594 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.5003, allocations: 3.906 kB / 0.5574 GB, free: 4.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.5003, allocations: 0 / 0.5574 GB, free: 4.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006717/0.501, allocations: 371.8 kB / 0.5578 GB, free: 4.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.501, allocations: 0 / 0.5578 GB, free: 4.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.5011, allocations: 15.98 kB / 0.5578 GB, free: 4.164 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.164e-05/0.5012, allocations: 0 / 0.5578 GB, free: 4.164 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.5012, allocations: 3.938 kB / 0.5578 GB, free: 4.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.597e-06/0.5012, allocations: 4 kB / 0.5578 GB, free: 4.156 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.5012, allocations: 3.938 kB / 0.5578 GB, free: 4.152 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003248/0.5016, allocations: 214.2 kB / 0.558 GB, free: 3.918 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.288e-05/0.5017, allocations: 89 kB / 0.5581 GB, free: 3.812 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.562e-05/0.5017, allocations: 4 kB / 0.5581 GB, free: 3.809 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.5019, allocations: 11.94 kB / 0.5581 GB, free: 3.797 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.984e-05/0.5019, allocations: 7.984 kB / 0.5581 GB, free: 3.789 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.5019, allocations: 7.906 kB / 0.5581 GB, free: 3.781 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001425/0.5021, allocations: 119.2 kB / 0.5582 GB, free: 3.664 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004033/0.5025, allocations: 47.91 kB / 0.5583 GB, free: 3.617 MB / 394.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.001126/0.5037, allocations: 377 kB / 0.5587 GB, free: 3.285 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002741/0.504, allocations: 59.92 kB / 0.5587 GB, free: 3.227 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.504, allocations: 0 / 0.5587 GB, free: 3.227 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.714e-05/0.5041, allocations: 31.94 kB / 0.5587 GB, free: 3.195 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004235/0.5045, allocations: 27.78 kB / 0.5588 GB, free: 3.172 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005189/0.5051, allocations: 165.8 kB / 0.5589 GB, free: 2.977 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004438/0.5055, allocations: 0.7308 MB / 0.5596 GB, free: 2.215 MB / 394.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5055, allocations: 3.938 kB / 0.5596 GB, free: 2.211 MB / 394.7 MB Notification: Performance of Templates: time 0.006221/0.5118, allocations: 2.193 MB / 0.5618 GB, free: 16 kB / 394.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=7 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/" -I. "-I/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables" -I"." -I"." -I"." "-I/var/lib/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 /var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables/usertab.c:14:\n/var/lib/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/var/lib/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/var/lib/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/var/lib/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'