Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/package.mo", uses=false) Using package Modelica_Noise with version 1.0 Beta.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise") translateModel(Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001529/0.001529, allocations: 162.8 kB / 16.09 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.257/1.257, allocations: 170.8 MB / 187.6 MB, free: 10.21 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001497/0.001497, allocations: 110.8 kB / 227.2 MB, free: 2.602 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/package.mo): time 0.02946/0.02946, allocations: 3.113 MB / 269.8 MB, free: 23.11 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005673/0.0005674, allocations: 12 kB / 319.9 MB, free: 4.863 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1639, allocations: 39.38 MB / 359.3 MB, free: 37.36 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise): time 0.001392/0.1654, allocations: 1.125 MB / 360.4 MB, free: 36.46 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.1667, allocations: 0.8385 MB / 361.3 MB, free: 35.82 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.041e-05/0.1668, allocations: 1.094 kB / 361.3 MB, free: 35.82 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.546e-05/0.1669, allocations: 3.938 kB / 361.3 MB, free: 35.82 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004002/0.1673, allocations: 71.84 kB / 361.4 MB, free: 35.77 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000184/0.1675, allocations: 66.11 kB / 361.4 MB, free: 35.73 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.85e-05/0.1676, allocations: 56.31 kB / 361.5 MB, free: 35.7 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.541e-05/0.1677, allocations: 9.047 kB / 361.5 MB, free: 35.69 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.585e-05/0.1677, allocations: 33.69 kB / 361.5 MB, free: 35.67 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.576e-05/0.1678, allocations: 27.3 kB / 361.5 MB, free: 35.65 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.55e-05/0.1678, allocations: 3.406 kB / 361.5 MB, free: 35.65 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002708/0.1681, allocations: 139.5 kB / 361.7 MB, free: 35.57 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.875e-05/0.1681, allocations: 12 kB / 361.7 MB, free: 35.56 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.384e-05/0.1682, allocations: 59.27 kB / 361.8 MB, free: 35.5 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001911/0.1684, allocations: 122 kB / 361.9 MB, free: 35.43 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.1684, allocations: 0 / 361.9 MB, free: 35.43 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1684, allocations: 0 / 361.9 MB, free: 35.43 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.1684, allocations: 0 / 361.9 MB, free: 35.43 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004641/0.1689, allocations: 404.3 kB / 362.3 MB, free: 35.02 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.1689, allocations: 9.344 kB / 362.3 MB, free: 35.02 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.1691, allocations: 25.11 kB / 362.3 MB, free: 35 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.1693, allocations: 179.7 kB / 362.5 MB, free: 34.8 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.1693, allocations: 9.406 kB / 362.5 MB, free: 34.79 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.1693, allocations: 3.156 kB / 362.5 MB, free: 34.79 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/0.1695, allocations: 87.17 kB / 362.6 MB, free: 34.71 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.1695, allocations: 0 / 362.6 MB, free: 34.71 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.1695, allocations: 1.156 kB / 362.6 MB, free: 34.71 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.1695, allocations: 1.375 kB / 362.6 MB, free: 34.71 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.1696, allocations: 36.17 kB / 362.6 MB, free: 34.7 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000158/0.1698, allocations: 203.4 kB / 362.8 MB, free: 34.46 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00017/0.17, allocations: 95.98 kB / 362.9 MB, free: 34.38 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.243e-05/0.17, allocations: 37.88 kB / 362.9 MB, free: 34.36 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-06/0.1701, allocations: 8.891 kB / 362.9 MB, free: 34.35 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001869/0.1703, allocations: 97.53 kB / 363 MB, free: 34.26 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.653e-06/0.1703, allocations: 4 kB / 363 MB, free: 34.26 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003307/0.1706, allocations: 147.1 kB / 363.2 MB, free: 34.18 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.1706, allocations: 85.22 kB / 363.3 MB, free: 34.09 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.006e-05/0.1707, allocations: 141.1 kB / 363.4 MB, free: 33.96 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.1708, allocations: 34.73 kB / 363.4 MB, free: 33.93 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.837e-05/0.1708, allocations: 95.72 kB / 363.5 MB, free: 33.83 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.817e-05/0.1708, allocations: 19.62 kB / 363.6 MB, free: 33.82 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.474e-06/0.1709, allocations: 5.484 kB / 363.6 MB, free: 33.81 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 4.322e-05/0.1709, allocations: 321.6 kB / 363.9 MB, free: 33.49 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.066e-05/0.171, allocations: 47.31 kB / 363.9 MB, free: 33.47 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.755e-05/0.1711, allocations: 65.03 kB / 364 MB, free: 33.43 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/0.1713, allocations: 109.6 kB / 364.1 MB, free: 33.33 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1713, allocations: 3.938 kB / 364.1 MB, free: 33.32 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002171/0.1715, allocations: 169.3 kB / 364.3 MB, free: 33.15 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.1715, allocations: 4 kB / 364.3 MB, free: 33.15 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.1715, allocations: 0 / 364.3 MB, free: 33.15 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.1715, allocations: 4.031 kB / 364.3 MB, free: 33.14 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.106e-05/0.1716, allocations: 12 kB / 364.3 MB, free: 33.13 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.1716, allocations: 7.922 kB / 364.3 MB, free: 33.12 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.527e-05/0.1717, allocations: 4 kB / 364.3 MB, free: 33.12 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.1717, allocations: 11.94 kB / 364.3 MB, free: 33.11 MB / 250.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: 14 ($whenCondition1,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,uniformNoise.localSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.823e-05/0.1718, allocations: 121.8 kB / 364.4 MB, free: 32.98 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.1718, allocations: 11.89 kB / 364.4 MB, free: 32.97 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.466e-05/0.1718, allocations: 16.72 kB / 364.5 MB, free: 32.95 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1718, allocations: 4 kB / 364.5 MB, free: 32.95 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.1719, allocations: 0 / 364.5 MB, free: 32.95 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.1719, allocations: 4 kB / 364.5 MB, free: 32.94 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001011/0.172, allocations: 177.6 kB / 364.6 MB, free: 32.72 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.172, allocations: 0 / 364.6 MB, free: 32.72 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.966e-05/0.172, allocations: 7.984 kB / 364.6 MB, free: 32.71 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.172, allocations: 48 / 364.6 MB, free: 32.71 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-06/0.172, allocations: 3.984 kB / 364.6 MB, free: 32.71 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.172, allocations: 4 kB / 364.6 MB, free: 32.7 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.172, allocations: 0 / 364.6 MB, free: 32.7 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001861/0.1722, allocations: 161.7 kB / 364.8 MB, free: 32.52 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.459e-05/0.1723, allocations: 92.94 kB / 364.9 MB, free: 32.41 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.1723, allocations: 4 kB / 364.9 MB, free: 32.41 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.67e-05/0.1723, allocations: 0 / 364.9 MB, free: 32.41 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.172e-05/0.1724, allocations: 15.98 kB / 364.9 MB, free: 32.39 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.1724, allocations: 4 kB / 364.9 MB, free: 32.39 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.542e-05/0.1724, allocations: 103.3 kB / 365 MB, free: 32.29 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1724, allocations: 0 / 365 MB, free: 32.29 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002422/0.1727, allocations: 43.98 kB / 365.1 MB, free: 32.25 MB / 250.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: 8 (uniformNoise.localSeed,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw) * Number of discrete states: 4 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002524/0.173, allocations: 166.1 kB / 365.2 MB, free: 32.09 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001979/0.1732, allocations: 91.95 kB / 365.3 MB, free: 32 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1732, allocations: 0 / 365.3 MB, free: 32 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.248e-05/0.1733, allocations: 43.98 kB / 365.4 MB, free: 31.95 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001463/0.1734, allocations: 22.75 kB / 365.4 MB, free: 31.93 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002878/0.1737, allocations: 211.7 kB / 365.6 MB, free: 31.7 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.698e-05/0.1738, allocations: 0.6966 MB / 366.3 MB, free: 30.97 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.474e-05/0.1738, allocations: 11.44 kB / 366.3 MB, free: 30.96 MB / 250.7 MB Notification: Performance of SimCode: time 3.31e-07/0.1738, allocations: 0 / 366.3 MB, free: 30.96 MB / 250.7 MB Notification: Performance of Templates: time 0.002947/0.1768, allocations: 1.854 MB / 368.2 MB, free: 29.11 MB / 250.7 MB make -j1 -f Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise.makefile make -j1 -f Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise.makefile clang++ -std=c++14 -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.o OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp:28: In file included from ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseFunctions.cpp:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:600:10: error: use of undeclared identifier '_getpid'; did you mean 'getpid'? pid = ModelicaRandom_getpid(); ^~~~~~~~~~~~~~~~~~~~~ getpid /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:207:34: note: expanded from macro 'ModelicaRandom_getpid' # define ModelicaRandom_getpid _getpid ^ /usr/include/unistd.h:628:16: note: 'getpid' declared here extern __pid_t getpid (void) __THROW; ^ In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseFunctions.cpp:81:3: error: no matching function for call to 'ModelicaRandom_xorshift128plus' ModelicaRandom_xorshift128plus(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:363:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift128plus(int state_in[], int state_out[], double* y) { ^ In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseFunctions.cpp:163:3: error: no matching function for call to 'ModelicaRandom_xorshift64star' ModelicaRandom_xorshift64star(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:312:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift64star(int state_in[], int state_out[], double* y) { ^ In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseFunctions.cpp:357:3: error: no matching function for call to 'ModelicaRandom_setInternalState_xorshift1024star' ModelicaRandom_setInternalState_xorshift1024star(ConstArray(rngState_).getData(), rngState_.getDim(1), id__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:530:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_setInternalState_xorshift1024star(int* state, size_t nState, int id) { ^ In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp:29: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseInitialize.cpp:140:104: warning: implicit conversion from 'long' to 'int' changes value from 4611686018427387903 to -1 [-Wconstant-conversion] _functions->Modelica__Noise_Math_Random_Utilities_impureRandomInteger(_globalSeed_P_id_impure_, 1, 4611686018427387903, tmp1); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~ ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseInitialize.cpp:156:145: error: use of undeclared identifier 'state_' _functions->Modelica__Noise_Math_Random_Utilities_initialStateWithXorshift64star(_uniformNoise_P_localSeed_,_uniformNoise_P_actualGlobalSeed_,state_.getDim(1),tmp3); ^ In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp:33: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise.cpp:237:106: warning: implicit conversion from 'long' to 'int' changes value from 4611686018427387903 to -1 [-Wconstant-conversion] _functions->Modelica__Noise_Math_Random_Utilities_impureRandomInteger(_globalSeed_P_id_impure_, 1, 4611686018427387903, tmp32); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~ 2 warnings and 5 errors generated. make: *** [: OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.o] Error 1