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.0009516/0.0009514, allocations: 169.9 kB / 16.07 MB, free: 5.574 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.279/1.279, allocations: 170.5 MB / 187.3 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.001596/0.001596, allocations: 106.9 kB / 226.6 MB, free: 2.863 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.01911/0.01911, allocations: 3.11 MB / 268.9 MB, free: 23.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004626/0.0004626, allocations: 8 kB / 318.8 MB, free: 5.508 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2102, allocations: 39.13 MB / 357.9 MB, free: 37.54 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseProperties): time 0.003018/0.2133, allocations: 1.548 MB / 359.5 MB, free: 36.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00276/0.2161, allocations: 1.022 MB / 360.5 MB, free: 35.53 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.2163, allocations: 2.312 kB / 360.5 MB, free: 35.53 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.2164, allocations: 11.86 kB / 360.5 MB, free: 35.52 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006307/0.2171, allocations: 88.53 kB / 360.6 MB, free: 35.46 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004366/0.2176, allocations: 110.7 kB / 360.7 MB, free: 35.38 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003024/0.2179, allocations: 201.2 kB / 360.9 MB, free: 35.26 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002184/0.2181, allocations: 69.41 kB / 361 MB, free: 35.22 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.2183, allocations: 76.19 kB / 361 MB, free: 35.17 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/0.2185, allocations: 93.42 kB / 361.1 MB, free: 35.11 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.665e-05/0.2186, allocations: 9.031 kB / 361.1 MB, free: 35.11 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004244/0.219, allocations: 145.3 kB / 361.3 MB, free: 35.03 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.695e-05/0.2191, allocations: 45.62 kB / 361.3 MB, free: 34.99 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001128/0.2193, allocations: 82.11 kB / 361.4 MB, free: 34.93 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003554/0.2196, allocations: 218.2 kB / 361.6 MB, free: 34.78 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2197, allocations: 0 / 361.6 MB, free: 34.78 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.2197, allocations: 0 / 361.6 MB, free: 34.78 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.2197, allocations: 4 kB / 361.6 MB, free: 34.78 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.001476/0.2212, allocations: 0.5411 MB / 362.2 MB, free: 34.29 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.2212, allocations: 9.219 kB / 362.2 MB, free: 34.29 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003475/0.2216, allocations: 44.95 kB / 362.2 MB, free: 34.27 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/0.2219, allocations: 239 kB / 362.4 MB, free: 34.02 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.633e-05/0.222, allocations: 23.94 kB / 362.5 MB, free: 34 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.147e-05/0.2221, allocations: 16.75 kB / 362.5 MB, free: 34 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007999/0.2229, allocations: 248.7 kB / 362.7 MB, free: 33.84 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.2229, allocations: 0 / 362.7 MB, free: 33.84 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.37e-05/0.223, allocations: 6.344 kB / 362.7 MB, free: 33.84 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.223, allocations: 6.344 kB / 362.7 MB, free: 33.84 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008196/0.2238, allocations: 177.6 kB / 362.9 MB, free: 33.77 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.2252, allocations: 0.6444 MB / 363.5 MB, free: 33.19 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/0.227, allocations: 399.9 kB / 363.9 MB, free: 32.81 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005113/0.2275, allocations: 141.6 kB / 364.1 MB, free: 32.66 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.2276, allocations: 15.94 kB / 364.1 MB, free: 32.65 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006575/0.2283, allocations: 208.9 kB / 364.3 MB, free: 32.43 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 3.296e-06/0.2283, allocations: 0 / 364.3 MB, free: 32.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.001747/0.23, allocations: 444.3 kB / 364.7 MB, free: 31.99 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.2301, allocations: 85.11 kB / 364.8 MB, free: 31.89 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002603/0.2304, allocations: 211.7 kB / 365 MB, free: 31.67 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.277e-05/0.2304, allocations: 45.69 kB / 365.1 MB, free: 31.62 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.013e-05/0.2305, allocations: 120.5 kB / 365.2 MB, free: 31.5 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.513e-05/0.2306, allocations: 71 kB / 365.3 MB, free: 31.43 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.073e-05/0.2307, allocations: 37.7 kB / 365.3 MB, free: 31.38 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.766e-05/0.2308, allocations: 334.8 kB / 365.6 MB, free: 31.05 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005143/0.2313, allocations: 143.9 kB / 365.8 MB, free: 30.91 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005322/0.2319, allocations: 169.9 kB / 365.9 MB, free: 30.73 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.233, allocations: 312.1 kB / 366.2 MB, free: 30.43 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.233, allocations: 4 kB / 366.2 MB, free: 30.42 MB / 250.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001304/0.2343, allocations: 394.1 kB / 366.6 MB, free: 30.03 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.2343, allocations: 7.938 kB / 366.6 MB, free: 30.02 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.2344, allocations: 4.031 kB / 366.6 MB, free: 30.02 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.2344, allocations: 4 kB / 366.6 MB, free: 30.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005138/0.2349, allocations: 71.89 kB / 366.7 MB, free: 29.95 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.2349, allocations: 4 kB / 366.7 MB, free: 29.94 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002972/0.2353, allocations: 55.64 kB / 366.8 MB, free: 29.89 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.292e-05/0.2353, allocations: 8 kB / 366.8 MB, free: 29.88 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.0001642/0.2355, allocations: 142.8 kB / 366.9 MB, free: 29.73 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.629e-05/0.2356, allocations: 19.75 kB / 366.9 MB, free: 29.71 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.375e-05/0.2357, allocations: 29.86 kB / 367 MB, free: 29.68 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.2357, allocations: 4 kB / 367 MB, free: 29.68 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.2357, allocations: 0 / 367 MB, free: 29.68 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.2357, allocations: 0 / 367 MB, free: 29.68 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/0.2375, allocations: 0.6854 MB / 367.6 MB, free: 28.94 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.014e-06/0.2375, allocations: 4 kB / 367.6 MB, free: 28.93 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004441/0.238, allocations: 59.83 kB / 367.7 MB, free: 28.88 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.064e-06/0.238, allocations: 7.938 kB / 367.7 MB, free: 28.87 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.2381, allocations: 7.984 kB / 367.7 MB, free: 28.86 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.2381, allocations: 4 kB / 367.7 MB, free: 28.86 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2381, allocations: 0 / 367.7 MB, free: 28.86 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/0.2397, allocations: 0.5412 MB / 368.3 MB, free: 28.3 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.757e-05/0.2398, allocations: 96.91 kB / 368.4 MB, free: 28.18 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.36e-05/0.2398, allocations: 11.94 kB / 368.4 MB, free: 28.17 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003326/0.2402, allocations: 35.97 kB / 368.4 MB, free: 28.14 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.647e-05/0.2403, allocations: 15.92 kB / 368.4 MB, free: 28.12 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.749e-05/0.2403, allocations: 11.98 kB / 368.4 MB, free: 28.11 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001692/0.2405, allocations: 149.5 kB / 368.6 MB, free: 27.96 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.2405, allocations: 0 / 368.6 MB, free: 27.96 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006285/0.2412, allocations: 67.98 kB / 368.7 MB, free: 27.9 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.0004588/0.2416, allocations: 165.4 kB / 368.8 MB, free: 27.74 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001228/0.2429, allocations: 335.3 kB / 369.1 MB, free: 27.41 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.2429, allocations: 0 / 369.1 MB, free: 27.41 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004229/0.2434, allocations: 139.9 kB / 369.3 MB, free: 27.27 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004948/0.2439, allocations: 26.19 kB / 369.3 MB, free: 27.25 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001061/0.2449, allocations: 0.5564 MB / 369.9 MB, free: 26.66 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001664/0.2451, allocations: 0.732 MB / 370.6 MB, free: 25.9 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.2452, allocations: 31.42 kB / 370.6 MB, free: 25.87 MB / 250.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2453, allocations: 4 kB / 370.6 MB, free: 25.87 MB / 250.7 MB Notification: Performance of Templates: time 0.007968/0.2532, allocations: 3.475 MB / 374.1 MB, free: 22.39 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