Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseProperties.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.UniformNoiseProperties,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseProperties") translateModel(Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseProperties,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009465/0.0009465, allocations: 163.3 kB / 16.09 MB, free: 5.688 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.012/1.012, allocations: 170.8 MB / 187.6 MB, free: 10.44 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.001493/0.001493, allocations: 110.8 kB / 227.2 MB, free: 2.828 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.01809/0.01809, allocations: 3.104 MB / 269.8 MB, free: 23.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.000363, allocations: 15.98 kB / 319.9 MB, free: 4.891 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1936/0.194, allocations: 39.39 MB / 359.3 MB, free: 37.4 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseProperties): time 0.002102/0.1961, allocations: 1.535 MB / 360.9 MB, free: 36.18 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001639/0.1978, allocations: 0.9942 MB / 361.9 MB, free: 35.42 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.194e-05/0.1979, allocations: 2.219 kB / 361.9 MB, free: 35.42 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.198, allocations: 11.86 kB / 361.9 MB, free: 35.41 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004021/0.1984, allocations: 85.53 kB / 361.9 MB, free: 35.35 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.1987, allocations: 115.1 kB / 362.1 MB, free: 35.26 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001958/0.1989, allocations: 199 kB / 362.3 MB, free: 35.15 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.1991, allocations: 66.27 kB / 362.3 MB, free: 35.11 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.1992, allocations: 80.2 kB / 362.4 MB, free: 35.06 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.1993, allocations: 89.78 kB / 362.5 MB, free: 35 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.155e-05/0.1994, allocations: 13.02 kB / 362.5 MB, free: 34.99 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002625/0.1997, allocations: 149.4 kB / 362.6 MB, free: 34.91 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.019e-05/0.1997, allocations: 44.89 kB / 362.7 MB, free: 34.88 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.166e-05/0.1998, allocations: 108 kB / 362.8 MB, free: 34.78 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002364/0.2001, allocations: 217.5 kB / 363 MB, free: 34.63 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2001, allocations: 0 / 363 MB, free: 34.63 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2001, allocations: 1.594 kB / 363 MB, free: 34.63 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.2001, allocations: 0 / 363 MB, free: 34.63 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.000991/0.2011, allocations: 0.5438 MB / 363.6 MB, free: 34.06 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.2012, allocations: 12.02 kB / 363.6 MB, free: 34.05 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001975/0.2014, allocations: 40.64 kB / 363.6 MB, free: 34.01 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.2016, allocations: 239.9 kB / 363.8 MB, free: 33.73 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.742e-05/0.2016, allocations: 20.66 kB / 363.9 MB, free: 33.71 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.93e-05/0.2017, allocations: 16.38 kB / 363.9 MB, free: 33.7 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004356/0.2021, allocations: 248.4 kB / 364.1 MB, free: 33.45 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2021, allocations: 0 / 364.1 MB, free: 33.45 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.132e-05/0.2022, allocations: 11.98 kB / 364.1 MB, free: 33.43 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.2022, allocations: 3.938 kB / 364.1 MB, free: 33.43 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004032/0.2026, allocations: 177.6 kB / 364.3 MB, free: 33.26 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000804/0.2034, allocations: 0.6485 MB / 365 MB, free: 32.55 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009957/0.2044, allocations: 393.3 kB / 365.3 MB, free: 32.15 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002757/0.2047, allocations: 141.6 kB / 365.5 MB, free: 32.01 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.2047, allocations: 11.94 kB / 365.5 MB, free: 32 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003759/0.2051, allocations: 208.9 kB / 365.7 MB, free: 31.77 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.2051, allocations: 0 / 365.7 MB, free: 31.77 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009474/0.2061, allocations: 440.3 kB / 366.1 MB, free: 31.34 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.2061, allocations: 85.09 kB / 366.2 MB, free: 31.24 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.2063, allocations: 211.7 kB / 366.4 MB, free: 31.02 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.969e-05/0.2063, allocations: 41.77 kB / 366.5 MB, free: 30.97 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.93e-05/0.2064, allocations: 128.4 kB / 366.6 MB, free: 30.84 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.004e-05/0.2065, allocations: 71.02 kB / 366.6 MB, free: 30.77 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.489e-05/0.2065, allocations: 4 kB / 366.7 MB, free: 30.77 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.022e-05/0.2065, allocations: 334.8 kB / 367 MB, free: 30.43 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002904/0.2068, allocations: 143.9 kB / 367.1 MB, free: 30.29 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002941/0.2071, allocations: 173.9 kB / 367.3 MB, free: 30.12 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005446/0.2077, allocations: 308.1 kB / 367.6 MB, free: 29.81 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2077, allocations: 0 / 367.6 MB, free: 29.81 MB / 250.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007002/0.2084, allocations: 406.1 kB / 368 MB, free: 29.41 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.2084, allocations: 7.938 kB / 368 MB, free: 29.4 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.2085, allocations: 0 / 368 MB, free: 29.4 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.2085, allocations: 8 kB / 368 MB, free: 29.39 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000268/0.2087, allocations: 71.88 kB / 368.1 MB, free: 29.32 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.2088, allocations: 4 kB / 368.1 MB, free: 29.32 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001563/0.2089, allocations: 47.67 kB / 368.1 MB, free: 29.27 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.414e-05/0.209, allocations: 15.98 kB / 368.1 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.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.0001187/0.2091, allocations: 134.8 kB / 368.3 MB, free: 29.12 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.876e-05/0.2091, allocations: 23.75 kB / 368.3 MB, free: 29.09 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.786e-05/0.2092, allocations: 25.86 kB / 368.3 MB, free: 29.07 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.2092, allocations: 4 kB / 368.3 MB, free: 29.07 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.2092, allocations: 8 kB / 368.3 MB, free: 29.06 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2092, allocations: 0 / 368.3 MB, free: 29.06 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009573/0.2102, allocations: 0.6922 MB / 369 MB, free: 28.31 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.2102, allocations: 0 / 369 MB, free: 28.31 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000228/0.2104, allocations: 55.91 kB / 369.1 MB, free: 28.26 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.2104, allocations: 3.938 kB / 369.1 MB, free: 28.25 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.132e-05/0.2105, allocations: 11.98 kB / 369.1 MB, free: 28.24 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.2105, allocations: 4 kB / 369.1 MB, free: 28.24 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.2105, allocations: 0 / 369.1 MB, free: 28.24 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000894/0.2114, allocations: 0.549 MB / 369.6 MB, free: 27.67 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.681e-05/0.2114, allocations: 92.86 kB / 369.7 MB, free: 27.56 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.898e-05/0.2115, allocations: 15.98 kB / 369.8 MB, free: 27.55 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001778/0.2117, allocations: 31.98 kB / 369.8 MB, free: 27.52 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.418e-05/0.2117, allocations: 15.97 kB / 369.8 MB, free: 27.5 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.2117, allocations: 4 kB / 369.8 MB, free: 27.5 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.71e-05/0.2118, allocations: 153.5 kB / 370 MB, free: 27.35 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2118, allocations: 0 / 370 MB, free: 27.35 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003411/0.2122, allocations: 71.89 kB / 370 MB, free: 27.28 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.0002984/0.2125, allocations: 171.8 kB / 370.2 MB, free: 27.11 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006489/0.2132, allocations: 323.5 kB / 370.5 MB, free: 26.79 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2132, allocations: 0 / 370.5 MB, free: 26.79 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002888/0.2135, allocations: 135.9 kB / 370.6 MB, free: 26.66 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.2138, allocations: 29.05 kB / 370.7 MB, free: 26.63 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007579/0.2146, allocations: 0.5686 MB / 371.2 MB, free: 26.03 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001338/0.2147, allocations: 0.7398 MB / 372 MB, free: 25.26 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.691e-05/0.2148, allocations: 27.42 kB / 372 MB, free: 25.23 MB / 250.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2148, allocations: 0 / 372 MB, free: 25.23 MB / 250.7 MB Notification: Performance of Templates: time 0.004729/0.2195, allocations: 3.492 MB / 375.5 MB, free: 21.75 MB / 250.7 MB make -j1 -f Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseProperties.makefile make -j1 -f Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseProperties.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.UniformNoisePropertiesCalcHelperMain.o OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoisePropertiesCalcHelperMain.cpp In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoisePropertiesCalcHelperMain.cpp:28: In file included from ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoisePropertiesFunctions.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.UniformNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoisePropertiesFunctions.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.UniformNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoisePropertiesFunctions.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.UniformNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoisePropertiesFunctions.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.UniformNoisePropertiesCalcHelperMain.cpp:29: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoisePropertiesInitialize.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.UniformNoisePropertiesInitialize.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.UniformNoisePropertiesCalcHelperMain.cpp:33: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseProperties.cpp:418: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, tmp57); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~ 2 warnings and 5 errors generated. make: *** [: OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoisePropertiesCalcHelperMain.o] Error 1