Running command: translateModel(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestVectors") Notification: Performance of loadModel(ModelicaTest): time 2.371/2.371, allocations: 234.9 MB / 250.1 MB, free: 9.926 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.926e-05/3.918e-05, allocations: 4 kB / 308 MB, free: 15.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3896/0.3897, allocations: 54.87 MB / 362.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.000624/0.3904, allocations: 212.5 kB / 363.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003544/0.394, allocations: 1.848 MB / 364.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.151e-05/0.394, allocations: 0 / 364.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.098e-05/0.394, allocations: 0 / 364.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.839e-06/0.3941, allocations: 0 / 364.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002029/0.3961, allocations: 0.5058 MB / 365.4 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.689e-05/0.3961, allocations: 0 / 365.4 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.464e-05/0.3962, allocations: 1.281 kB / 365.4 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.428e-05/0.3962, allocations: 0 / 365.4 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001429/0.3976, allocations: 0.5161 MB / 365.9 MB, free: 9.766 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001487/0.3991, allocations: 0.58 MB / 366.5 MB, free: 9.488 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001514/0.3993, allocations: 31 kB / 366.5 MB, free: 9.488 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.387e-06/0.3994, allocations: 5.047 kB / 366.5 MB, free: 9.484 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.227e-05/0.3994, allocations: 0 / 366.5 MB, free: 9.484 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008182/0.4002, allocations: 401.9 kB / 366.9 MB, free: 9.273 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.4002, allocations: 1.125 kB / 366.9 MB, free: 9.273 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.4002, allocations: 0 / 366.9 MB, free: 9.273 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.4003, allocations: 0 / 366.9 MB, free: 9.273 MB / 298.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.0005288/0.4008, allocations: 403.8 kB / 367.3 MB, free: 8.844 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.4009, allocations: 9.531 kB / 367.3 MB, free: 8.844 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.331e-05/0.4009, allocations: 0 / 367.3 MB, free: 8.844 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.401, allocations: 160.4 kB / 367.5 MB, free: 8.648 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.401, allocations: 3.938 kB / 367.5 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.4011, allocations: 5.188 kB / 367.5 MB, free: 8.641 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.652e-05/0.4012, allocations: 35.95 kB / 367.5 MB, free: 8.602 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.4012, allocations: 0 / 367.5 MB, free: 8.602 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.629e-06/0.4012, allocations: 0 / 367.5 MB, free: 8.602 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.4012, allocations: 4.938 kB / 367.5 MB, free: 8.598 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.943e-05/0.4013, allocations: 1 kB / 367.5 MB, free: 8.598 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001469/0.4014, allocations: 150.6 kB / 367.7 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.114e-05/0.4015, allocations: 20.64 kB / 367.7 MB, free: 8.375 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.746e-06/0.4015, allocations: 1 kB / 367.7 MB, free: 8.375 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.261e-05/0.4016, allocations: 57.39 kB / 367.8 MB, free: 8.305 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.643e-06/0.4016, allocations: 0 / 367.8 MB, free: 8.305 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001938/0.4018, allocations: 74.88 kB / 367.8 MB, free: 8.227 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.4018, allocations: 78.2 kB / 367.9 MB, free: 8.133 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.887e-05/0.4019, allocations: 85 kB / 368 MB, free: 8.043 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.4019, allocations: 25.7 kB / 368 MB, free: 8.012 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.796e-05/0.402, allocations: 151.8 kB / 368.2 MB, free: 7.863 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/0.402, allocations: 0 / 368.2 MB, free: 7.863 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-06/0.402, allocations: 1.125 kB / 368.2 MB, free: 7.863 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.4022, allocations: 310.8 kB / 368.5 MB, free: 7.551 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.53e-05/0.4022, allocations: 9.141 kB / 368.5 MB, free: 7.543 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.865e-06/0.4022, allocations: 4.844 kB / 368.5 MB, free: 7.539 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.428e-05/0.4023, allocations: 27.7 kB / 368.5 MB, free: 7.508 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4023, allocations: 0 / 368.5 MB, free: 7.508 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.953e-05/0.4024, allocations: 62.34 kB / 368.6 MB, free: 7.441 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.508e-05/0.4024, allocations: 31.73 kB / 368.6 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.4024, allocations: 0 / 368.6 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.4025, allocations: 3.984 kB / 368.6 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.453e-06/0.4025, allocations: 0 / 368.6 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.4025, allocations: 9.703 kB / 368.6 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.159e-05/0.4025, allocations: 4 kB / 368.6 MB, free: 7.395 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.4025, allocations: 1.469 kB / 368.6 MB, free: 7.395 MB / 298.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 0.0001017/0.4027, allocations: 136.9 kB / 368.8 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.011e-05/0.4027, allocations: 1.406 kB / 368.8 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.125e-05/0.4027, allocations: 3.125 kB / 368.8 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.4027, allocations: 0 / 368.8 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.4027, allocations: 1.344 kB / 368.8 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.4027, allocations: 3.953 kB / 368.8 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000123/0.4029, allocations: 159 kB / 368.9 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.4029, allocations: 0 / 368.9 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.132e-06/0.4029, allocations: 4.875 kB / 368.9 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.4029, allocations: 0 / 368.9 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.415e-06/0.4029, allocations: 1.5 kB / 368.9 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.4029, allocations: 3.938 kB / 368.9 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.4029, allocations: 1.031 kB / 368.9 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001286/0.4031, allocations: 97.31 kB / 369 MB, free: 6.922 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.151e-05/0.4031, allocations: 78.94 kB / 369.1 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.4032, allocations: 1.375 kB / 369.1 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.686e-05/0.4032, allocations: 5.141 kB / 369.1 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.933e-05/0.4032, allocations: 0 / 369.1 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-06/0.4032, allocations: 1.125 kB / 369.1 MB, free: 6.824 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.222e-05/0.4033, allocations: 75.28 kB / 369.2 MB, free: 6.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4033, allocations: 1.281 kB / 369.2 MB, free: 6.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008725/0.4042, allocations: 132.7 kB / 369.3 MB, free: 6.719 MB / 298.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.001023/0.4052, allocations: 257 kB / 369.6 MB, free: 6.566 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001379/0.4054, allocations: 64.5 kB / 369.6 MB, free: 6.496 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4054, allocations: 0 / 369.6 MB, free: 6.496 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.421e-05/0.4054, allocations: 59.33 kB / 369.7 MB, free: 6.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.971e-05/0.4055, allocations: 5.391 kB / 369.7 MB, free: 6.426 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002128/0.4058, allocations: 101.4 kB / 369.8 MB, free: 6.301 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.4061, allocations: 0.6794 MB / 370.5 MB, free: 5.598 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.372e-05/0.4061, allocations: 8.844 kB / 370.5 MB, free: 5.59 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.4061, allocations: 0 / 370.5 MB, free: 5.59 MB / 298.7 MB Notification: Performance of Templates: time 0.009215/0.4153, allocations: 3.462 MB / 373.9 MB, free: 2.285 MB / 298.7 MB make -j1 -f ModelicaTest_3.2.2_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"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestVectorsCalcHelperMain.o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestVectorsCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestVectorsCalcHelperMain.cpp:15: ./OMCppModelicaTest_3.2.2_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_3.2.2_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_3.2.2_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_3.2.2_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_3.2.2_cpp_ModelicaTest.Math.TestVectorsCalcHelperMain.cpp:29: ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestVectorsFunctions.cpp:225:14: error: assigning to 'const char *' from incompatible type 'std::__cxx11::string' (aka 'basic_string') job__ext = job_; ^~~~ ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestVectorsFunctions.cpp:226:16: error: assigning to 'const char *' from incompatible type 'std::__cxx11::string' (aka 'basic_string') compz__ext = compz_; ^~~~~~ ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestVectorsFunctions.cpp:227: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_3.2.2_cpp_ModelicaTest.Math.TestVectorsFunctions.cpp:5: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_3.2.2_cpp_ModelicaTest.Math.TestVectorsFunctions.cpp:493:44: error: use of undeclared identifier 'D_24i1_' D_24tmpVar4_ = std::abs(v_(D_24i1_)); ^ ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestVectorsFunctions.cpp:543:46: error: use of undeclared identifier 'D_24i1_' D_24tmpVar2_ = std::abs(v_(D_24i1_)); ^ ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestVectorsFunctions.cpp:1001:13: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' rc_(UNKNOWN_SUBSCRIPT).re_ = tmp96.re_; ^ ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestVectorsFunctions.cpp:1002:13: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' rc_(UNKNOWN_SUBSCRIPT).im_ = tmp96.im_; ^ 11 errors generated. : recipe for target 'OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestVectorsCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestVectorsCalcHelperMain.o] Error 1