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.0009412/0.0009411, allocations: 172.2 kB / 16.07 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.262/1.262, allocations: 170.5 MB / 187.3 MB, free: 11.43 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.00165/0.00165, allocations: 118.8 kB / 226.6 MB, free: 4.086 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.0193/0.0193, allocations: 3.092 MB / 268.9 MB, free: 23.63 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003586/0.0003587, allocations: 11.98 kB / 318.8 MB, free: 5.672 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.1816, allocations: 39.12 MB / 357.9 MB, free: 37.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties): time 0.00203/0.1836, allocations: 1.548 MB / 359.5 MB, free: 36.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002185/0.1859, allocations: 1.313 MB / 360.8 MB, free: 35.52 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001735/0.1861, allocations: 2.562 kB / 360.8 MB, free: 35.52 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001436/0.1862, allocations: 11.86 kB / 360.8 MB, free: 35.51 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005416/0.1868, allocations: 91.84 kB / 360.9 MB, free: 35.44 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000624/0.1874, allocations: 204.7 kB / 361.1 MB, free: 35.31 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002606/0.1877, allocations: 199.4 kB / 361.3 MB, free: 35.2 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.1879, allocations: 66.16 kB / 361.3 MB, free: 35.16 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.188, allocations: 74.44 kB / 361.4 MB, free: 35.11 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.1882, allocations: 93.8 kB / 361.5 MB, free: 35.04 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.325e-05/0.1882, allocations: 9.094 kB / 361.5 MB, free: 35.04 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006204/0.1889, allocations: 322.9 kB / 361.8 MB, free: 34.88 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.2e-05/0.1889, allocations: 45.03 kB / 361.9 MB, free: 34.84 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.95e-05/0.189, allocations: 91.17 kB / 362 MB, free: 34.77 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004148/0.1895, allocations: 276.7 kB / 362.2 MB, free: 34.59 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.1895, allocations: 0 / 362.2 MB, free: 34.59 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1895, allocations: 0 / 362.2 MB, free: 34.59 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.1895, allocations: 1.094 kB / 362.2 MB, free: 34.59 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.001149/0.1907, allocations: 0.5656 MB / 362.8 MB, free: 34.08 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.1907, allocations: 11.12 kB / 362.8 MB, free: 34.07 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002387/0.191, allocations: 40.64 kB / 362.8 MB, free: 34.04 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002308/0.1912, allocations: 235.9 kB / 363.1 MB, free: 33.77 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.617e-05/0.1913, allocations: 16.64 kB / 363.1 MB, free: 33.75 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.04e-05/0.1913, allocations: 20.38 kB / 363.1 MB, free: 33.73 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004704/0.1918, allocations: 248.4 kB / 363.3 MB, free: 33.48 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.1918, allocations: 0 / 363.3 MB, free: 33.48 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.1918, allocations: 8 kB / 363.4 MB, free: 33.47 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1918, allocations: 0 / 363.4 MB, free: 33.47 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004206/0.1923, allocations: 181.7 kB / 363.5 MB, free: 33.29 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008677/0.1932, allocations: 0.6524 MB / 364.2 MB, free: 32.59 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009649/0.1941, allocations: 396.4 kB / 364.6 MB, free: 32.18 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002698/0.1944, allocations: 141.6 kB / 364.7 MB, free: 32.04 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.1944, allocations: 7.938 kB / 364.7 MB, free: 32.03 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003807/0.1948, allocations: 208.8 kB / 364.9 MB, free: 31.81 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.724e-06/0.1948, allocations: 0 / 364.9 MB, free: 31.81 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009565/0.1958, allocations: 444.9 kB / 365.4 MB, free: 31.37 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.1959, allocations: 85.05 kB / 365.4 MB, free: 31.27 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001676/0.196, allocations: 207.8 kB / 365.6 MB, free: 31.05 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.1961, allocations: 37.7 kB / 365.7 MB, free: 31.01 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.942e-05/0.1961, allocations: 132.4 kB / 365.8 MB, free: 30.88 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.41e-05/0.1962, allocations: 67.08 kB / 365.9 MB, free: 30.81 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-05/0.1962, allocations: 45.72 kB / 365.9 MB, free: 30.76 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 5.376e-05/0.1963, allocations: 334.8 kB / 366.2 MB, free: 30.43 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002986/0.1966, allocations: 143.9 kB / 366.4 MB, free: 30.29 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003038/0.1969, allocations: 173.9 kB / 366.6 MB, free: 30.11 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005732/0.1975, allocations: 300.1 kB / 366.9 MB, free: 29.81 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1975, allocations: 4 kB / 366.9 MB, free: 29.81 MB / 250.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006923/0.1982, allocations: 398.1 kB / 367.2 MB, free: 29.41 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.1982, allocations: 11.94 kB / 367.3 MB, free: 29.4 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1983, allocations: 3.938 kB / 367.3 MB, free: 29.4 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1983, allocations: 0 / 367.3 MB, free: 29.4 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002732/0.1986, allocations: 75.89 kB / 367.3 MB, free: 29.32 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.1986, allocations: 3.984 kB / 367.3 MB, free: 29.32 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.1987, allocations: 51.67 kB / 367.4 MB, free: 29.27 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.1988, allocations: 11.98 kB / 367.4 MB, free: 29.26 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.r_raw,$PRE.noise.r_raw,noise.r,$PRE.noise.r,noise.state[4],$PRE.noise.state[4],noise.state[3],$PRE.noise.state[3],noise.state[2],$PRE.noise.state[2],noise.state[1],$PRE.noise.state[1],noise.localSeed) * 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.0001188/0.1989, allocations: 142.8 kB / 367.5 MB, free: 29.11 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.1989, allocations: 19.75 kB / 367.6 MB, free: 29.09 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.083e-05/0.199, allocations: 25.86 kB / 367.6 MB, free: 29.07 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.199, allocations: 4 kB / 367.6 MB, free: 29.06 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.199, allocations: 0 / 367.6 MB, free: 29.06 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.199, allocations: 0 / 367.6 MB, free: 29.06 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009861/0.2, allocations: 0.6854 MB / 368.3 MB, free: 28.32 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2, allocations: 0 / 368.3 MB, free: 28.32 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002348/0.2003, allocations: 63.94 kB / 368.3 MB, free: 28.26 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.2003, allocations: 3.938 kB / 368.3 MB, free: 28.25 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.2003, allocations: 4 kB / 368.3 MB, free: 28.25 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.2003, allocations: 7.938 kB / 368.4 MB, free: 28.24 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2003, allocations: 0 / 368.4 MB, free: 28.24 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009367/0.2013, allocations: 0.5451 MB / 368.9 MB, free: 27.68 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.058e-05/0.2013, allocations: 104.9 kB / 369 MB, free: 27.56 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.2014, allocations: 7.938 kB / 369 MB, free: 27.55 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.2016, allocations: 35.97 kB / 369 MB, free: 27.52 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.763e-05/0.2016, allocations: 11.98 kB / 369.1 MB, free: 27.5 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.591e-05/0.2017, allocations: 11.98 kB / 369.1 MB, free: 27.49 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.886e-05/0.2018, allocations: 145.5 kB / 369.2 MB, free: 27.35 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2018, allocations: 0 / 369.2 MB, free: 27.35 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004413/0.2022, allocations: 111.9 kB / 369.3 MB, free: 27.24 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.0005102/0.2027, allocations: 239.2 kB / 369.5 MB, free: 27.01 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006666/0.2034, allocations: 327.5 kB / 369.9 MB, free: 26.69 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2034, allocations: 0 / 369.9 MB, free: 26.69 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002935/0.2037, allocations: 139.5 kB / 370 MB, free: 26.55 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.2041, allocations: 31.92 kB / 370 MB, free: 26.52 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007799/0.2048, allocations: 0.5442 MB / 370.6 MB, free: 25.95 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001543/0.205, allocations: 0.7359 MB / 371.3 MB, free: 25.18 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.94e-05/0.2051, allocations: 27.42 kB / 371.3 MB, free: 25.16 MB / 250.7 MB Notification: Performance of SimCode: time 4.61e-07/0.2051, allocations: 0 / 371.3 MB, free: 25.16 MB / 250.7 MB Notification: Performance of Templates: time 0.005983/0.2111, allocations: 4.179 MB / 375.5 MB, free: 20.98 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