Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/package.mo", uses=false) Using package Modelica_Noise with version 1.0 Beta.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise") translateModel(Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002418/0.002418, allocations: 171.7 kB / 16.07 MB, free: 5.727 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.196/1.196, allocations: 170.5 MB / 187.3 MB, free: 1.059 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.002329/0.002329, allocations: 100.3 kB / 226.6 MB, free: 10.29 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.04052/0.04052, allocations: 3.107 MB / 268.9 MB, free: 15.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003724/0.0003725, allocations: 12.19 kB / 318.8 MB, free: 63.3 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07631/0.0767, allocations: 39.13 MB / 357.9 MB, free: 24.28 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise): time 0.001268/0.07801, allocations: 1.126 MB / 359 MB, free: 23.14 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001225/0.07925, allocations: 0.861 MB / 359.9 MB, free: 22.27 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.775e-05/0.0793, allocations: 4 kB / 359.9 MB, free: 22.27 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.64e-05/0.07941, allocations: 3.938 kB / 359.9 MB, free: 22.26 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003554/0.07977, allocations: 75.8 kB / 360 MB, free: 22.19 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001233/0.0799, allocations: 59.88 kB / 360 MB, free: 22.13 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.656e-05/0.07999, allocations: 55.84 kB / 360.1 MB, free: 22.07 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.716e-05/0.08005, allocations: 12.16 kB / 360.1 MB, free: 22.06 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.824e-05/0.08011, allocations: 35.84 kB / 360.1 MB, free: 22.03 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.092e-05/0.08016, allocations: 27.84 kB / 360.2 MB, free: 22 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.589e-05/0.08018, allocations: 7.938 kB / 360.2 MB, free: 21.99 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002281/0.08042, allocations: 135.8 kB / 360.3 MB, free: 21.86 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.856e-05/0.08048, allocations: 11.98 kB / 360.3 MB, free: 21.85 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.825e-05/0.08053, allocations: 31.78 kB / 360.3 MB, free: 21.82 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000189/0.08073, allocations: 120 kB / 360.5 MB, free: 21.7 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.08074, allocations: 4 kB / 360.5 MB, free: 21.7 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.08075, allocations: 3.938 kB / 360.5 MB, free: 21.69 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.08076, allocations: 0 / 360.5 MB, free: 21.69 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004918/0.08126, allocations: 387.3 kB / 360.8 MB, free: 21.27 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.0813, allocations: 8.031 kB / 360.9 MB, free: 21.26 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001765/0.08148, allocations: 28.83 kB / 360.9 MB, free: 21.23 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.08161, allocations: 184.2 kB / 361.1 MB, free: 21.01 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.08164, allocations: 4.375 kB / 361.1 MB, free: 21.01 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.08166, allocations: 4.375 kB / 361.1 MB, free: 21 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000147/0.08181, allocations: 83.31 kB / 361.2 MB, free: 20.91 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.08183, allocations: 0 / 361.2 MB, free: 20.91 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.08185, allocations: 4 kB / 361.2 MB, free: 20.91 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.08186, allocations: 3.938 kB / 361.2 MB, free: 20.9 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001037/0.08197, allocations: 43.91 kB / 361.2 MB, free: 20.86 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000164/0.08214, allocations: 194.4 kB / 361.4 MB, free: 20.62 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.08232, allocations: 93.12 kB / 361.5 MB, free: 20.51 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.078e-05/0.08239, allocations: 41.77 kB / 361.5 MB, free: 20.46 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.246e-06/0.08241, allocations: 3.938 kB / 361.5 MB, free: 20.46 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001919/0.0826, allocations: 97.09 kB / 361.6 MB, free: 20.34 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.08261, allocations: 0 / 361.6 MB, free: 20.34 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003259/0.08295, allocations: 157.5 kB / 361.8 MB, free: 20.18 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.08299, allocations: 81.11 kB / 361.9 MB, free: 20.09 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.81e-05/0.08309, allocations: 138.1 kB / 362 MB, free: 19.94 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.08312, allocations: 41.62 kB / 362 MB, free: 19.89 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.879e-05/0.08315, allocations: 88.14 kB / 362.1 MB, free: 19.8 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.72e-05/0.08319, allocations: 27.94 kB / 362.1 MB, free: 19.77 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.648e-05/0.08322, allocations: 25.64 kB / 362.2 MB, free: 19.74 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 5.367e-05/0.08328, allocations: 326.8 kB / 362.5 MB, free: 19.41 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.326e-05/0.08337, allocations: 47.97 kB / 362.5 MB, free: 19.37 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.323e-05/0.08346, allocations: 62.53 kB / 362.6 MB, free: 19.3 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.08364, allocations: 108.7 kB / 362.7 MB, free: 19.19 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.08365, allocations: 0 / 362.7 MB, free: 19.19 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002145/0.08387, allocations: 165.3 kB / 362.9 MB, free: 19.02 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.08389, allocations: 8 kB / 362.9 MB, free: 19.02 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.361e-06/0.0839, allocations: 0 / 362.9 MB, free: 19.02 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.08392, allocations: 3.938 kB / 362.9 MB, free: 19.01 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.48e-05/0.08401, allocations: 16.02 kB / 362.9 MB, free: 19 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.08403, allocations: 4 kB / 362.9 MB, free: 18.99 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.911e-05/0.08407, allocations: 4 kB / 362.9 MB, free: 18.99 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.08409, allocations: 4 kB / 362.9 MB, free: 18.98 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,uniformNoise.localSeed,uniformNoise.r_raw,$PRE.uniformNoise.r_raw,uniformNoise.r,$PRE.uniformNoise.r,uniformNoise.state[4],$PRE.uniformNoise.state[4],uniformNoise.state[3],$PRE.uniformNoise.state[3],uniformNoise.state[2],$PRE.uniformNoise.state[2],uniformNoise.state[1],$PRE.uniformNoise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.152e-05/0.08417, allocations: 143.6 kB / 363 MB, free: 18.84 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.703e-05/0.0842, allocations: 7.906 kB / 363.1 MB, free: 18.83 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.202e-05/0.08422, allocations: 8.719 kB / 363.1 MB, free: 18.82 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.08423, allocations: 4 kB / 363.1 MB, free: 18.82 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.08424, allocations: 4 kB / 363.1 MB, free: 18.81 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.08425, allocations: 0 / 363.1 MB, free: 18.81 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001025/0.08436, allocations: 181.5 kB / 363.2 MB, free: 18.59 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.08437, allocations: 3.984 kB / 363.3 MB, free: 18.58 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.899e-05/0.0844, allocations: 4 kB / 363.3 MB, free: 18.58 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.08441, allocations: 0 / 363.3 MB, free: 18.58 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.08442, allocations: 4 kB / 363.3 MB, free: 18.57 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.08443, allocations: 0 / 363.3 MB, free: 18.57 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.08444, allocations: 0 / 363.3 MB, free: 18.57 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001959/0.08464, allocations: 161.7 kB / 363.4 MB, free: 18.39 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.373e-05/0.08467, allocations: 89 kB / 363.5 MB, free: 18.29 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.0847, allocations: 4 kB / 363.5 MB, free: 18.29 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.775e-05/0.08474, allocations: 8.062 kB / 363.5 MB, free: 18.28 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.519e-05/0.08478, allocations: 11.98 kB / 363.5 MB, free: 18.27 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.002e-06/0.08479, allocations: 4 kB / 363.5 MB, free: 18.26 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.237e-05/0.08485, allocations: 104.7 kB / 363.6 MB, free: 18.16 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08486, allocations: 3.938 kB / 363.6 MB, free: 18.16 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002264/0.08509, allocations: 47.98 kB / 363.7 MB, free: 18.11 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 (uniformNoise.localSeed,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw) * Number of discrete states: 4 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002836/0.08538, allocations: 171.5 kB / 363.9 MB, free: 17.95 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002105/0.0856, allocations: 99.94 kB / 363.9 MB, free: 17.85 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.08561, allocations: 0 / 363.9 MB, free: 17.85 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.638e-05/0.08569, allocations: 39.98 kB / 364 MB, free: 17.81 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001465/0.08585, allocations: 19.86 kB / 364 MB, free: 17.79 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003155/0.08617, allocations: 206.4 kB / 364.2 MB, free: 17.56 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000137/0.08632, allocations: 0.6927 MB / 364.9 MB, free: 16.84 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.558e-05/0.08635, allocations: 11.44 kB / 364.9 MB, free: 16.83 MB / 250.7 MB Notification: Performance of SimCode: time 2.8e-07/0.08636, allocations: 0 / 364.9 MB, free: 16.83 MB / 250.7 MB Notification: Performance of Templates: time 0.003124/0.08949, allocations: 1.847 MB / 366.8 MB, free: 14.98 MB / 250.7 MB make -j1 -f Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise.makefile make -j1 -f Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise.makefile clang++ -std=c++14 -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.o OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp:28: In file included from ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseFunctions.cpp:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:600:10: error: use of undeclared identifier '_getpid'; did you mean 'getpid'? pid = ModelicaRandom_getpid(); ^~~~~~~~~~~~~~~~~~~~~ getpid /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:207:34: note: expanded from macro 'ModelicaRandom_getpid' # define ModelicaRandom_getpid _getpid ^ /usr/include/unistd.h:628:16: note: 'getpid' declared here extern __pid_t getpid (void) __THROW; ^ In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseFunctions.cpp:81:3: error: no matching function for call to 'ModelicaRandom_xorshift128plus' ModelicaRandom_xorshift128plus(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:363:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift128plus(int state_in[], int state_out[], double* y) { ^ In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseFunctions.cpp:163:3: error: no matching function for call to 'ModelicaRandom_xorshift64star' ModelicaRandom_xorshift64star(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:312:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift64star(int state_in[], int state_out[], double* y) { ^ In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseFunctions.cpp:357:3: error: no matching function for call to 'ModelicaRandom_setInternalState_xorshift1024star' ModelicaRandom_setInternalState_xorshift1024star(ConstArray(rngState_).getData(), rngState_.getDim(1), id__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Noise 1.0.0-master/Resources/Include/ModelicaRandom.c:530:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_setInternalState_xorshift1024star(int* state, size_t nState, int id) { ^ In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp:29: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseInitialize.cpp:140:104: warning: implicit conversion from 'long' to 'int' changes value from 4611686018427387903 to -1 [-Wconstant-conversion] _functions->Modelica__Noise_Math_Random_Utilities_impureRandomInteger(_globalSeed_P_id_impure_, 1, 4611686018427387903, tmp1); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~ ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseInitialize.cpp:156:145: error: use of undeclared identifier 'state_' _functions->Modelica__Noise_Math_Random_Utilities_initialStateWithXorshift64star(_uniformNoise_P_localSeed_,_uniformNoise_P_actualGlobalSeed_,state_.getDim(1),tmp3); ^ In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.cpp:33: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise.cpp:237:106: warning: implicit conversion from 'long' to 'int' changes value from 4611686018427387903 to -1 [-Wconstant-conversion] _functions->Modelica__Noise_Math_Random_Utilities_impureRandomInteger(_globalSeed_P_id_impure_, 1, 4611686018427387903, tmp32); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~ 2 warnings and 5 errors generated. make: *** [: OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseCalcHelperMain.o] Error 1