Running command: translateModel(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors") Notification: Performance of loadModel(ModelicaTest): time 2.439/2.439, allocations: 269 MB / 284.1 MB, free: 3.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.131e-05/3.128e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.132, allocations: 61.89 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.0006747/0.1328, allocations: 204.7 kB / 411.1 MB, free: 12.67 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001715/0.1345, allocations: 0.716 MB / 411.8 MB, free: 11.95 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.154e-05/0.1346, allocations: 0 / 411.8 MB, free: 11.95 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.07e-05/0.1346, allocations: 4 kB / 411.8 MB, free: 11.95 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.5e-06/0.1346, allocations: 0 / 411.8 MB, free: 11.95 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001558/0.1362, allocations: 418.6 kB / 412.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.472e-05/0.1362, allocations: 0 / 412.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.506e-05/0.1362, allocations: 0 / 412.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.536e-05/0.1363, allocations: 0 / 412.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004314/0.1367, allocations: 127.9 kB / 412.4 MB, free: 11.41 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007682/0.1375, allocations: 323.5 kB / 412.7 MB, free: 11.09 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.301e-05/0.1376, allocations: 15.94 kB / 412.7 MB, free: 11.08 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.012e-06/0.1376, allocations: 7.938 kB / 412.7 MB, free: 11.07 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.334e-05/0.1376, allocations: 4 kB / 412.7 MB, free: 11.07 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004955/0.1381, allocations: 239.6 kB / 412.9 MB, free: 10.83 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1381, allocations: 0 / 412.9 MB, free: 10.83 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.856e-06/0.1382, allocations: 0 / 412.9 MB, free: 10.83 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.1382, allocations: 4 kB / 412.9 MB, free: 10.83 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004037/0.1386, allocations: 377.1 kB / 413.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.1387, allocations: 8.031 kB / 413.3 MB, free: 10.4 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.953e-05/0.1387, allocations: 3.906 kB / 413.3 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.1388, allocations: 171.1 kB / 413.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.1388, allocations: 0 / 413.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.1389, allocations: 0 / 413.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.344e-05/0.139, allocations: 29.66 kB / 413.5 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.139, allocations: 4 kB / 413.5 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.139, allocations: 0 / 413.5 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.139, allocations: 0 / 413.5 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.261e-05/0.1391, allocations: 7.875 kB / 413.5 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000144/0.1392, allocations: 149.7 kB / 413.7 MB, free: 9.945 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.103e-05/0.1393, allocations: 22.61 kB / 413.7 MB, free: 9.914 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.787e-06/0.1393, allocations: 0 / 413.7 MB, free: 9.914 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.798e-05/0.1394, allocations: 56.27 kB / 413.8 MB, free: 9.844 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.583e-06/0.1394, allocations: 0 / 413.8 MB, free: 9.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001817/0.1396, allocations: 71.34 kB / 413.8 MB, free: 9.762 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.1396, allocations: 81.11 kB / 413.9 MB, free: 9.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.937e-05/0.1397, allocations: 85 kB / 414 MB, free: 9.574 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.1397, allocations: 33.83 kB / 414 MB, free: 9.535 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.284e-05/0.1398, allocations: 150.6 kB / 414.2 MB, free: 9.387 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.54e-05/0.1398, allocations: 0 / 414.2 MB, free: 9.387 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-06/0.1398, allocations: 0 / 414.2 MB, free: 9.387 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1399, allocations: 310.8 kB / 414.5 MB, free: 9.074 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.939e-06/0.1399, allocations: 0 / 414.5 MB, free: 9.074 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.387e-06/0.14, allocations: 4 kB / 414.5 MB, free: 9.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.669e-05/0.14, allocations: 25.7 kB / 414.5 MB, free: 9.039 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.14, allocations: 4.062 kB / 414.5 MB, free: 9.035 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.174e-05/0.1401, allocations: 67.39 kB / 414.6 MB, free: 8.957 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.1402, allocations: 36.3 kB / 414.6 MB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1402, allocations: 0 / 414.6 MB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.1402, allocations: 0 / 414.6 MB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.667e-06/0.1402, allocations: 3.953 kB / 414.6 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.1402, allocations: 8 kB / 414.6 MB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.876e-05/0.1403, allocations: 0 / 414.6 MB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.1403, allocations: 3.938 kB / 414.6 MB, free: 8.902 MB / 346.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: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 9.471e-05/0.1404, allocations: 135.6 kB / 414.8 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.091e-05/0.1404, allocations: 7.984 kB / 414.8 MB, free: 8.746 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.32e-05/0.1404, allocations: 3.125 kB / 414.8 MB, free: 8.742 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1404, allocations: 0 / 414.8 MB, free: 8.742 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1404, allocations: 3.953 kB / 414.8 MB, free: 8.738 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.1405, allocations: 0 / 414.8 MB, free: 8.738 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.1406, allocations: 145.7 kB / 414.9 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1406, allocations: 0 / 414.9 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.1406, allocations: 0 / 414.9 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/0.1406, allocations: 7.969 kB / 414.9 MB, free: 8.539 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.1406, allocations: 3.938 kB / 414.9 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1406, allocations: 4 kB / 414.9 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1406, allocations: 0 / 414.9 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000116/0.1408, allocations: 94.73 kB / 415 MB, free: 8.414 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.109e-05/0.1408, allocations: 85.09 kB / 415.1 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.1408, allocations: 0 / 415.1 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.54e-05/0.1409, allocations: 4 kB / 415.1 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.271e-05/0.1409, allocations: 0 / 415.1 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-06/0.1409, allocations: 4.031 kB / 415.1 MB, free: 8.305 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.93e-05/0.1409, allocations: 75.28 kB / 415.2 MB, free: 8.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1409, allocations: 0 / 415.2 MB, free: 8.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004403/0.1414, allocations: 83.94 kB / 415.3 MB, free: 8.148 MB / 346.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: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0006532/0.1421, allocations: 213.2 kB / 415.5 MB, free: 7.934 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.1422, allocations: 59.41 kB / 415.5 MB, free: 7.863 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1422, allocations: 0 / 415.5 MB, free: 7.863 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.58e-05/0.1423, allocations: 59.47 kB / 415.6 MB, free: 7.793 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.527e-05/0.1424, allocations: 3.938 kB / 415.6 MB, free: 7.789 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001874/0.1426, allocations: 112.5 kB / 415.7 MB, free: 7.645 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002508/0.1429, allocations: 0.6692 MB / 416.4 MB, free: 6.949 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.444e-05/0.1429, allocations: 11.44 kB / 416.4 MB, free: 6.938 MB / 346.7 MB Notification: Performance of SimCode: time 6.01e-07/0.1429, allocations: 0 / 416.4 MB, free: 6.938 MB / 346.7 MB Notification: Performance of Templates: time 0.005124/0.148, allocations: 1.815 MB / 418.2 MB, free: 5.121 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.makefile 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 -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsCalcHelperMain.cpp:15: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsTypes.h:30:93: error: non-type template argument evaluates to -1, which cannot be narrowed to type 'std::size_t' (aka 'unsigned long') [-Wc++11-narrowing] typedef tuple< DynArrayDim1 , DynArrayDim1 , int, StatArrayDim2< double, -1,-1> /*testarray2*/, StatArrayDim2< double, -1,-1> /*testarray2*/, DynArrayDim1 > TUPLE_ARRAY; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsTypes.h:30:96: error: non-type template argument evaluates to -1, which cannot be narrowed to type 'std::size_t' (aka 'unsigned long') [-Wc++11-narrowing] typedef tuple< DynArrayDim1 , DynArrayDim1 , int, StatArrayDim2< double, -1,-1> /*testarray2*/, StatArrayDim2< double, -1,-1> /*testarray2*/, DynArrayDim1 > TUPLE_ARRAY; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsTypes.h:30:139: error: non-type template argument evaluates to -1, which cannot be narrowed to type 'std::size_t' (aka 'unsigned long') [-Wc++11-narrowing] typedef tuple< DynArrayDim1 , DynArrayDim1 , int, StatArrayDim2< double, -1,-1> /*testarray2*/, StatArrayDim2< double, -1,-1> /*testarray2*/, DynArrayDim1 > TUPLE_ARRAY; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsTypes.h:30:142: error: non-type template argument evaluates to -1, which cannot be narrowed to type 'std::size_t' (aka 'unsigned long') [-Wc++11-narrowing] typedef tuple< DynArrayDim1 , DynArrayDim1 , int, StatArrayDim2< double, -1,-1> /*testarray2*/, StatArrayDim2< double, -1,-1> /*testarray2*/, DynArrayDim1 > TUPLE_ARRAY; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsFunctions.cpp:228:14: error: assigning to 'const char *' from incompatible type 'std::__cxx11::string' (aka 'basic_string') job__ext = job_; ^~~~ ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsFunctions.cpp:229:16: error: assigning to 'const char *' from incompatible type 'std::__cxx11::string' (aka 'basic_string') compz__ext = compz_; ^~~~~~ ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsFunctions.cpp:230:3: error: no matching function for call to 'dhseqr_' dhseqr_(&job__ext, &compz__ext, &n_, &ilo_, &ihi_, Ho_.getData(), &ldh_, alphaReal_.getData(), alphaImag_.getData(), Zo_.getData(), &ldh_, work_.getData(), &lwork_, &info_); ^~~~~~~ ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsFunctions.cpp:12:15: note: candidate function not viable: no known conversion from 'const char **' to 'const char *' for 1st argument; remove & extern void dhseqr_(const char* /*job_*/, const char* /*compz_*/, int* /*n_*/, int* /*ilo_*/, int* /*ihi_*/, double* /*Ho_*/, int* /*ldh_*/, double* /*alphaReal_*/, double* /*alphaImag_*/, double* /*Zo_*/, int* /*ldh_*/, double* /*work_*/, int* /*lwork_*/, int* /*info_*/); ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsFunctions.cpp:578:13: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' rc_(UNKNOWN_SUBSCRIPT).re_ = tmp35.re_; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsFunctions.cpp:579:13: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' rc_(UNKNOWN_SUBSCRIPT).im_ = tmp35.im_; ^ 9 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectorsCalcHelperMain.o] Error 1