Running command: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadModel(Modelica): time 2.346/2.346, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.515e-05/2.507e-05, allocations: 5.094 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1105, allocations: 50.41 MB / 345 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.00156/0.1121, allocations: 0.9453 MB / 345.9 MB, free: 8 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001124/0.1133, allocations: 421.6 kB / 346.3 MB, free: 7.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.808e-05/0.1134, allocations: 4 kB / 346.3 MB, free: 7.586 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.073e-05/0.1134, allocations: 3.938 kB / 346.3 MB, free: 7.582 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003563/0.1138, allocations: 43.86 kB / 346.4 MB, free: 7.539 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001808/0.114, allocations: 43.81 kB / 346.4 MB, free: 7.496 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.209e-05/0.114, allocations: 11.94 kB / 346.4 MB, free: 7.484 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.463e-05/0.1141, allocations: 4 kB / 346.4 MB, free: 7.48 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.148e-05/0.1141, allocations: 23.97 kB / 346.5 MB, free: 7.457 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.451e-05/0.1142, allocations: 15.92 kB / 346.5 MB, free: 7.441 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002443/0.1145, allocations: 83.88 kB / 346.6 MB, free: 7.359 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.46e-05/0.1145, allocations: 8 kB / 346.6 MB, free: 7.352 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.656e-05/0.1146, allocations: 31.91 kB / 346.6 MB, free: 7.32 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.891e-05/0.1146, allocations: 12 kB / 346.6 MB, free: 7.309 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.1149, allocations: 115.7 kB / 346.7 MB, free: 7.195 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1149, allocations: 0 / 346.7 MB, free: 7.195 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1149, allocations: 0 / 346.7 MB, free: 7.195 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1149, allocations: 3.938 kB / 346.7 MB, free: 7.191 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006257/0.1156, allocations: 0.5489 MB / 347.3 MB, free: 6.582 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.1156, allocations: 12.03 kB / 347.3 MB, free: 6.57 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001629/0.1158, allocations: 19.77 kB / 347.3 MB, free: 6.551 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001735/0.116, allocations: 183.2 kB / 347.5 MB, free: 6.332 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.116, allocations: 0 / 347.5 MB, free: 6.332 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.237e-05/0.116, allocations: 8 kB / 347.5 MB, free: 6.324 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004251/0.1165, allocations: 275.2 kB / 347.8 MB, free: 6.043 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.1165, allocations: 0 / 347.8 MB, free: 6.043 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.1165, allocations: 4 kB / 347.8 MB, free: 6.039 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1165, allocations: 4 kB / 347.8 MB, free: 6.035 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002225/0.1168, allocations: 147.8 kB / 347.9 MB, free: 5.891 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002238/0.117, allocations: 194.3 kB / 348.1 MB, free: 5.648 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005593/0.1176, allocations: 497.1 kB / 348.6 MB, free: 5.145 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.045e-05/0.1176, allocations: 0 / 348.6 MB, free: 5.145 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006126/0.1182, allocations: 484.9 kB / 349.1 MB, free: 4.625 MB / 282.7 MB Notification: Performance of pre-optimization done (n=46): time 2.084e-06/0.1182, allocations: 0 / 349.1 MB, free: 4.625 MB / 282.7 MB Notification: Performance of matching and sorting (n=46): time 0.00133/0.1196, allocations: 0.8815 MB / 349.9 MB, free: 3.688 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.1197, allocations: 156.5 kB / 350.1 MB, free: 3.504 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.846e-05/0.1198, allocations: 100.9 kB / 350.2 MB, free: 3.398 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.1199, allocations: 33.77 kB / 350.2 MB, free: 3.359 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.833e-05/0.1199, allocations: 151.6 kB / 350.4 MB, free: 3.211 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.408e-05/0.12, allocations: 86.75 kB / 350.5 MB, free: 3.125 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/0.1201, allocations: 0 / 350.5 MB, free: 3.125 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.1202, allocations: 330.8 kB / 350.8 MB, free: 2.793 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.1203, allocations: 84.28 kB / 350.9 MB, free: 2.711 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.1205, allocations: 114.2 kB / 351 MB, free: 2.594 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.1208, allocations: 196.5 kB / 351.2 MB, free: 2.391 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1208, allocations: 4 kB / 351.2 MB, free: 2.387 MB / 282.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005372/0.1213, allocations: 340.8 kB / 351.5 MB, free: 2.035 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001331/0.1215, allocations: 115.3 kB / 351.6 MB, free: 1.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1215, allocations: 0 / 351.6 MB, free: 1.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.1215, allocations: 3.984 kB / 351.6 MB, free: 1.906 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.794e-06/0.1215, allocations: 0 / 351.6 MB, free: 1.906 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.1215, allocations: 4 kB / 351.6 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.86e-05/0.1217, allocations: 19.75 kB / 351.7 MB, free: 1.883 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.885e-05/0.1217, allocations: 8 kB / 351.7 MB, free: 1.875 MB / 282.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: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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.0004226/0.1221, allocations: 299.8 kB / 352 MB, free: 1.562 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.427e-05/0.1222, allocations: 24.14 kB / 352 MB, free: 1.539 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.048e-05/0.1222, allocations: 9.547 kB / 352 MB, free: 1.527 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.1222, allocations: 4 kB / 352 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.086e-06/0.1223, allocations: 7.984 kB / 352 MB, free: 1.516 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1223, allocations: 3.938 kB / 352 MB, free: 1.512 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002578/0.1225, allocations: 237.2 kB / 352.2 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1226, allocations: 4 kB / 352.2 MB, free: 1.227 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.463e-06/0.1226, allocations: 0 / 352.2 MB, free: 1.227 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.1226, allocations: 0 / 352.2 MB, free: 1.227 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-05/0.1226, allocations: 19.98 kB / 352.3 MB, free: 1.207 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.1226, allocations: 3.938 kB / 352.3 MB, free: 1.203 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1227, allocations: 0 / 352.3 MB, free: 1.203 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001878/0.1245, allocations: 1.23 MB / 353.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.736e-05/0.1246, allocations: 96.84 kB / 353.6 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001725/0.1248, allocations: 67.94 kB / 353.6 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.845e-05/0.1249, allocations: 8 kB / 353.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.165e-05/0.125, allocations: 12 kB / 353.7 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-05/0.1251, allocations: 15.98 kB / 353.7 MB, free: 15.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.19e-05/0.1251, allocations: 83.31 kB / 353.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1251, allocations: 0 / 353.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004674/0.1256, allocations: 91.98 kB / 353.9 MB, free: 15.55 MB / 298.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: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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.0007862/0.1264, allocations: 310.9 kB / 354.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002609/0.129, allocations: 2.127 MB / 356.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.1291, allocations: 0 / 356.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002447/0.1315, allocations: 2.186 MB / 358.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001973/0.1318, allocations: 12 kB / 358.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008875/0.1327, allocations: 433.3 kB / 358.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.133, allocations: 0.7325 MB / 359.6 MB, free: 9.664 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.728e-05/0.1331, allocations: 7.438 kB / 359.6 MB, free: 9.656 MB / 298.7 MB Notification: Performance of SimCode: time 2.915e-06/0.1331, allocations: 0 / 359.6 MB, free: 9.656 MB / 298.7 MB Notification: Performance of Templates: time 0.007684/0.1408, allocations: 2.885 MB / 362.5 MB, free: 6.773 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.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 OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersFunctions.cpp:84:3: error: no matching function for call to 'ModelicaRandom_xorshift1024star' ModelicaRandom_xorshift1024star(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:76:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift1024star(_In_ int* state_in, ^ In file included from OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersFunctions.cpp:115:3: error: no matching function for call to 'ModelicaRandom_xorshift128plus' ModelicaRandom_xorshift128plus(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:74:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift128plus(_In_ int* state_in, ^ In file included from OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersFunctions.cpp:200:3: error: no matching function for call to 'ModelicaRandom_xorshift64star' ModelicaRandom_xorshift64star(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:72:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift64star(_In_ int* state_in, ^ In file included from OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersFunctions.cpp:395:3: error: no matching function for call to 'ModelicaRandom_setInternalState_xorshift1024star' ModelicaRandom_setInternalState_xorshift1024star(ConstArray(rngState_).getData(), rngState_.getDim(1), id__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:78:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_setInternalState_xorshift1024star( ^ In file included from OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.cpp:36: ./OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.cpp:509:89: error: no matching member function for call to 'pre' _functions->Modelica_Math_Random_Generators_Xorshift64star_random(_discrete_events->pre(_state64_), tmp10); ~~~~~~~~~~~~~~~~~~^~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:29:11: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const double' for 1st argument double& pre(const double& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:30:8: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const int' for 1st argument int& pre(const int& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:31:9: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const bool' for 1st argument bool& pre(const bool& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:32:23: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const std::string' (aka 'const basic_string') for 1st argument std::string & pre(const std::string & var); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.cpp:36: ./OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.cpp:515:90: error: no matching member function for call to 'pre' _functions->Modelica_Math_Random_Generators_Xorshift128plus_random(_discrete_events->pre(_state128_), tmp11); ~~~~~~~~~~~~~~~~~~^~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:29:11: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const double' for 1st argument double& pre(const double& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:30:8: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const int' for 1st argument int& pre(const int& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:31:9: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const bool' for 1st argument bool& pre(const bool& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:32:23: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const std::string' (aka 'const basic_string') for 1st argument std::string & pre(const std::string & var); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.cpp:36: ./OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.cpp:521:91: error: no matching member function for call to 'pre' _functions->Modelica_Math_Random_Generators_Xorshift1024star_random(_discrete_events->pre(_state1024_), tmp12); ~~~~~~~~~~~~~~~~~~^~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:29:11: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const double' for 1st argument double& pre(const double& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:30:8: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const int' for 1st argument int& pre(const int& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:31:9: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const bool' for 1st argument bool& pre(const bool& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:32:23: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const std::string' (aka 'const basic_string') for 1st argument std::string & pre(const std::string & var); ^ 7 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.o] Error 1