Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties.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.NormalNoiseProperties,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties") translateModel(Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00133/0.00133, allocations: 165.3 kB / 16.1 MB, free: 5.695 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.093/1.093, allocations: 170.8 MB / 187.6 MB, free: 11.47 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.001455/0.001455, allocations: 110.8 kB / 227.2 MB, free: 3.859 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.01764/0.01764, allocations: 3.103 MB / 269.8 MB, free: 23.29 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003293/0.0003293, allocations: 8 kB / 319.9 MB, free: 5.043 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1723, allocations: 39.38 MB / 359.3 MB, free: 37.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties): time 0.001779/0.1741, allocations: 1.531 MB / 360.9 MB, free: 36.38 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.1762, allocations: 1.28 MB / 362.1 MB, free: 35.4 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.1763, allocations: 2.844 kB / 362.1 MB, free: 35.4 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.1765, allocations: 15.86 kB / 362.1 MB, free: 35.39 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004626/0.1769, allocations: 84.66 kB / 362.2 MB, free: 35.33 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004847/0.1774, allocations: 209 kB / 362.4 MB, free: 35.19 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000188/0.1776, allocations: 202.8 kB / 362.6 MB, free: 35.07 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.1778, allocations: 62.42 kB / 362.7 MB, free: 35.02 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.594e-05/0.1779, allocations: 75.62 kB / 362.8 MB, free: 34.95 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.049e-05/0.178, allocations: 91.58 kB / 362.9 MB, free: 34.86 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/0.178, allocations: 12 kB / 362.9 MB, free: 34.84 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004231/0.1784, allocations: 327.4 kB / 363.2 MB, free: 34.52 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.858e-05/0.1785, allocations: 47.77 kB / 363.2 MB, free: 34.48 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.274e-05/0.1786, allocations: 105.2 kB / 363.3 MB, free: 34.37 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002589/0.1788, allocations: 279.4 kB / 363.6 MB, free: 34.09 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.1789, allocations: 3.938 kB / 363.6 MB, free: 34.09 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1789, allocations: 0 / 363.6 MB, free: 34.09 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.1789, allocations: 0 / 363.6 MB, free: 34.09 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0008964/0.1798, allocations: 0.5662 MB / 364.2 MB, free: 33.47 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1798, allocations: 12.03 kB / 364.2 MB, free: 33.46 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001978/0.18, allocations: 32.64 kB / 364.2 MB, free: 33.43 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.1802, allocations: 243.9 kB / 364.5 MB, free: 33.15 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.1803, allocations: 16.64 kB / 364.5 MB, free: 33.14 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.301e-05/0.1803, allocations: 16.38 kB / 364.5 MB, free: 33.12 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004385/0.1807, allocations: 252.4 kB / 364.7 MB, free: 32.86 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1808, allocations: 0 / 364.7 MB, free: 32.86 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.1808, allocations: 4 kB / 364.7 MB, free: 32.86 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.1808, allocations: 4 kB / 364.7 MB, free: 32.86 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004432/0.1812, allocations: 181.6 kB / 364.9 MB, free: 32.68 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008157/0.1821, allocations: 0.6407 MB / 365.6 MB, free: 31.98 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000982/0.1831, allocations: 397.3 kB / 366 MB, free: 31.58 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.1834, allocations: 145.6 kB / 366.1 MB, free: 31.43 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.1834, allocations: 12 kB / 366.1 MB, free: 31.42 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003709/0.1838, allocations: 212.8 kB / 366.3 MB, free: 31.19 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.392e-06/0.1838, allocations: 0 / 366.3 MB, free: 31.19 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009551/0.1847, allocations: 436.9 kB / 366.7 MB, free: 30.76 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.1848, allocations: 81.11 kB / 366.8 MB, free: 30.66 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.1849, allocations: 211.7 kB / 367 MB, free: 30.45 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.789e-05/0.185, allocations: 37.69 kB / 367.1 MB, free: 30.4 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.982e-05/0.185, allocations: 128.5 kB / 367.2 MB, free: 30.27 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.547e-05/0.1851, allocations: 78.98 kB / 367.3 MB, free: 30.2 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.527e-05/0.1851, allocations: 4 kB / 367.3 MB, free: 30.19 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.435e-05/0.1852, allocations: 334.8 kB / 367.6 MB, free: 29.86 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002915/0.1855, allocations: 147.9 kB / 367.7 MB, free: 29.71 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002924/0.1858, allocations: 169.9 kB / 367.9 MB, free: 29.54 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005458/0.1864, allocations: 308.1 kB / 368.2 MB, free: 29.23 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1864, allocations: 0 / 368.2 MB, free: 29.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000668/0.187, allocations: 402.1 kB / 368.6 MB, free: 28.84 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.1871, allocations: 7.938 kB / 368.6 MB, free: 28.83 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1871, allocations: 0 / 368.6 MB, free: 28.83 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.1871, allocations: 7.938 kB / 368.6 MB, free: 28.82 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.1874, allocations: 71.89 kB / 368.7 MB, free: 28.75 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1874, allocations: 11.97 kB / 368.7 MB, free: 28.74 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/0.1875, allocations: 47.67 kB / 368.7 MB, free: 28.69 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.1876, allocations: 15.98 kB / 368.8 MB, free: 28.68 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,noise.localSeed,$PRE.noise.state[1],noise.state[1],$PRE.noise.state[2],noise.state[2],$PRE.noise.state[3],noise.state[3],$PRE.noise.state[4],noise.state[4],$PRE.noise.r,noise.r,$PRE.noise.r_raw,noise.r_raw) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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 0.0001081/0.1877, allocations: 138.8 kB / 368.9 MB, free: 28.53 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.709e-05/0.1877, allocations: 23.75 kB / 368.9 MB, free: 28.51 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.807e-05/0.1878, allocations: 25.86 kB / 368.9 MB, free: 28.48 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.1878, allocations: 0 / 368.9 MB, free: 28.48 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1878, allocations: 0 / 368.9 MB, free: 28.48 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1878, allocations: 4 kB / 369 MB, free: 28.48 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009526/0.1888, allocations: 0.6904 MB / 369.6 MB, free: 27.73 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1888, allocations: 4 kB / 369.6 MB, free: 27.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00023/0.189, allocations: 55.94 kB / 369.7 MB, free: 27.68 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.189, allocations: 3.938 kB / 369.7 MB, free: 27.67 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.072e-05/0.1891, allocations: 8 kB / 369.7 MB, free: 27.66 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.1891, allocations: 0 / 369.7 MB, free: 27.66 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.1891, allocations: 4 kB / 369.7 MB, free: 27.66 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009106/0.19, allocations: 0.545 MB / 370.3 MB, free: 27.1 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.512e-05/0.19, allocations: 104.8 kB / 370.4 MB, free: 26.98 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.583e-05/0.1901, allocations: 12 kB / 370.4 MB, free: 26.96 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.1903, allocations: 27.97 kB / 370.4 MB, free: 26.94 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.698e-05/0.1903, allocations: 15.98 kB / 370.4 MB, free: 26.92 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.1903, allocations: 7.984 kB / 370.4 MB, free: 26.91 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.686e-05/0.1904, allocations: 153.5 kB / 370.6 MB, free: 26.77 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1905, allocations: 0 / 370.6 MB, free: 26.77 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003891/0.1909, allocations: 111.9 kB / 370.7 MB, free: 26.66 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (mean.mu,variance.mu,variance.var,standardDeviation.variance.mu,standardDeviation.variance.var) * Number of discrete variables: 8 (noise.localSeed,$whenCondition1,noise.state[1],noise.state[2],noise.state[3],noise.state[4],noise.r,noise.r_raw) * Number of discrete states: 4 (noise.state[1],noise.state[2],noise.state[3],noise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 16 * 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.000458/0.1913, allocations: 232.3 kB / 370.9 MB, free: 26.43 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006416/0.192, allocations: 327.5 kB / 371.2 MB, free: 26.11 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.192, allocations: 0 / 371.2 MB, free: 26.11 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000281/0.1923, allocations: 135.9 kB / 371.4 MB, free: 25.97 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003123/0.1926, allocations: 27.92 kB / 371.4 MB, free: 25.95 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007677/0.1934, allocations: 0.5681 MB / 372 MB, free: 25.34 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001444/0.1935, allocations: 0.7359 MB / 372.7 MB, free: 24.58 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.394e-05/0.1936, allocations: 27.42 kB / 372.7 MB, free: 24.55 MB / 250.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1936, allocations: 0 / 372.7 MB, free: 24.55 MB / 250.7 MB Notification: Performance of Templates: time 0.005168/0.1988, allocations: 4.189 MB / 376.9 MB, free: 20.37 MB / 250.7 MB make -j1 -f Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties.makefile make -j1 -f Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties.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.NormalNoisePropertiesCalcHelperMain.o OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesCalcHelperMain.cpp In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesCalcHelperMain.cpp:28: In file included from ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesFunctions.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.NormalNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesFunctions.cpp:123: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.NormalNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesFunctions.cpp:205: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.NormalNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesFunctions.cpp:399: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.NormalNoisePropertiesCalcHelperMain.cpp:29: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesInitialize.cpp:149: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.NormalNoisePropertiesInitialize.cpp:274:131: error: use of undeclared identifier 'state_' _functions->Modelica__Noise_Math_Random_Utilities_initialStateWithXorshift64star(_noise_P_localSeed_,_noise_P_actualGlobalSeed_,state_.getDim(1),tmp6); ^ In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesCalcHelperMain.cpp:33: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties.cpp:420: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, tmp80); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~ 2 warnings and 5 errors generated. make: *** [: OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesCalcHelperMain.o] Error 1