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: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1D.Test25_usertab,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1D.Test25_usertab,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertab",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002064/0.002063, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.107/2.107, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001861/0.001861, allocations: 90.05 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2993/0.2993, allocations: 43.49 MB / 353.6 MB, free: 2.289 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.248e-05/2.246e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3933/0.3934, allocations: 58.85 MB / 477.2 MB, free: 5.18 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1608/0.5543, allocations: 85.85 MB / 0.5498 GB, free: 13.39 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/0.5546, allocations: 75.95 kB / 0.5499 GB, free: 13.32 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01554/0.5702, allocations: 3.553 MB / 0.5534 GB, free: 9.766 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5702, allocations: 0.5469 kB / 0.5534 GB, free: 9.766 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.661e-05/0.5702, allocations: 4 kB / 0.5534 GB, free: 9.762 MB / 395.1 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.0004902/0.5707, allocations: 378.9 kB / 0.5537 GB, free: 9.348 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.5708, allocations: 8.031 kB / 0.5537 GB, free: 9.34 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.209e-05/0.5709, allocations: 7.906 kB / 0.5538 GB, free: 9.332 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/0.5712, allocations: 186.9 kB / 0.5539 GB, free: 9.109 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.5712, allocations: 4 kB / 0.5539 GB, free: 9.105 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.221e-05/0.5712, allocations: 0 / 0.5539 GB, free: 9.105 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.733e-05/0.5713, allocations: 27.98 kB / 0.554 GB, free: 9.078 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001276/0.5715, allocations: 63.34 kB / 0.554 GB, free: 9.004 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.5715, allocations: 0 / 0.554 GB, free: 9.004 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.5715, allocations: 0 / 0.554 GB, free: 9.004 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.5715, allocations: 0 / 0.554 GB, free: 9.004 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000467/0.572, allocations: 261.5 kB / 0.5543 GB, free: 8.711 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.685e-05/0.5721, allocations: 38.55 kB / 0.5543 GB, free: 8.664 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.533e-05/0.5722, allocations: 12.86 kB / 0.5543 GB, free: 8.648 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.5722, allocations: 11.92 kB / 0.5543 GB, free: 8.637 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.5722, allocations: 30.56 kB / 0.5544 GB, free: 8.598 MB / 395.1 MB Notification: Performance of pre-optimization done (n=4): time 1.933e-06/0.5723, allocations: 0 / 0.5544 GB, free: 8.598 MB / 395.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005206/0.5728, allocations: 117.4 kB / 0.5545 GB, free: 8.477 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.5729, allocations: 77.11 kB / 0.5545 GB, free: 8.383 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.573, allocations: 125 kB / 0.5547 GB, free: 8.254 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.573, allocations: 29.64 kB / 0.5547 GB, free: 8.219 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.007e-05/0.5731, allocations: 158.6 kB / 0.5548 GB, free: 8.062 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.5732, allocations: 15.7 kB / 0.5549 GB, free: 8.047 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.082e-06/0.5732, allocations: 3.938 kB / 0.5549 GB, free: 8.043 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.5733, allocations: 322.8 kB / 0.5552 GB, free: 7.719 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.25e-05/0.5734, allocations: 12 kB / 0.5552 GB, free: 7.707 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.699e-05/0.5734, allocations: 33.64 kB / 0.5552 GB, free: 7.668 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.612e-05/0.5735, allocations: 12.12 kB / 0.5552 GB, free: 7.656 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.5735, allocations: 0 / 0.5552 GB, free: 7.656 MB / 395.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001654/0.5737, allocations: 65.67 kB / 0.5553 GB, free: 7.586 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.5737, allocations: 8 kB / 0.5553 GB, free: 7.578 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.902e-06/0.5738, allocations: 0 / 0.5553 GB, free: 7.578 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.5738, allocations: 0 / 0.5553 GB, free: 7.578 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.5739, allocations: 20.02 kB / 0.5553 GB, free: 7.559 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.574, allocations: 3.938 kB / 0.5553 GB, free: 7.555 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.318e-05/0.5741, allocations: 11.94 kB / 0.5553 GB, free: 7.543 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.5741, allocations: 0 / 0.5553 GB, free: 7.543 MB / 395.1 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 () * 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 8.432e-05/0.5742, allocations: 104.9 kB / 0.5554 GB, free: 7.434 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000172/0.5744, allocations: 69.59 kB / 0.5555 GB, free: 7.359 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.237e-05/0.5744, allocations: 11.89 kB / 0.5555 GB, free: 7.348 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002337/0.5747, allocations: 82.61 kB / 0.5556 GB, free: 7.266 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.5747, allocations: 8 kB / 0.5556 GB, free: 7.258 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.5747, allocations: 0 / 0.5556 GB, free: 7.258 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.974e-06/0.5747, allocations: 3.953 kB / 0.5556 GB, free: 7.254 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004929/0.5752, allocations: 315.1 kB / 0.5559 GB, free: 6.902 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.5753, allocations: 0 / 0.5559 GB, free: 6.902 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001306/0.5754, allocations: 15.98 kB / 0.5559 GB, free: 6.887 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.5754, allocations: 0 / 0.5559 GB, free: 6.887 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.5754, allocations: 0 / 0.5559 GB, free: 6.887 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.5754, allocations: 4 kB / 0.5559 GB, free: 6.883 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.216e-06/0.5755, allocations: 11.89 kB / 0.5559 GB, free: 6.871 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/0.5757, allocations: 159.5 kB / 0.5561 GB, free: 6.699 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.118e-05/0.5758, allocations: 89 kB / 0.5562 GB, free: 6.594 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.5758, allocations: 0 / 0.5562 GB, free: 6.594 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.5759, allocations: 4 kB / 0.5562 GB, free: 6.59 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.15e-05/0.576, allocations: 11.98 kB / 0.5562 GB, free: 6.578 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.576, allocations: 7.953 kB / 0.5562 GB, free: 6.57 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001064/0.5761, allocations: 107.3 kB / 0.5563 GB, free: 6.465 MB / 395.1 MB Notification: Performance of sort global known variables: time 2.455e-06/0.5761, allocations: 0 / 0.5563 GB, free: 6.465 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003705/0.5765, allocations: 31.94 kB / 0.5563 GB, free: 6.434 MB / 395.1 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 () * 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.001567/0.5781, allocations: 0.9784 MB / 0.5573 GB, free: 5.473 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001808/0.5783, allocations: 36 kB / 0.5573 GB, free: 5.438 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.5783, allocations: 4 kB / 0.5573 GB, free: 5.434 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 6.308e-05/0.5784, allocations: 27.92 kB / 0.5573 GB, free: 5.406 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000331/0.5787, allocations: 15.83 kB / 0.5574 GB, free: 5.391 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006334/0.5794, allocations: 187 kB / 0.5575 GB, free: 5.164 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.5797, allocations: 0.7001 MB / 0.5582 GB, free: 4.438 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.5798, allocations: 27.42 kB / 0.5582 GB, free: 4.41 MB / 395.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5799, allocations: 4 kB / 0.5582 GB, free: 4.406 MB / 395.1 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/sundials" -I"." "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables" -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 In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabCalcHelperMain.cpp:28: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabFunctions.cpp:5: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables/usertab.c:14: /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] {"TestTable_1D_Time", TestTable_1D_Time, 0, {6, 2}} ^ /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] ,{"TestTable_1D_a" , TestTable_1D_a, 1, {4, 2}} ^ /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] ,{"TestTable_1D_b" , TestTable_1D_b, 1, {5, 3}} ^ /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] ,{"TestTable_2D" , TestTable_2D, 2, {5, 4}} ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabFunctions.cpp:300:18: error: no matching function for call to 'mydummyfunc' dummy_y__ext = mydummyfunc(ConstArray(dummy_u_).getData()); ^~~~~~~~~~~ ./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 double mydummyfunc(double* dummy_in) { ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 5 warnings and 1 error generated. : recipe for target 'OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test25_usertabCalcHelperMain.o] Error 1