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.0008182/0.0008183, allocations: 166 kB / 15.76 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 0.9789/0.9789, allocations: 170.8 MB / 187.3 MB, free: 0.9727 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.001487/0.001487, allocations: 108.8 kB / 226.8 MB, free: 10.08 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.02113/0.02113, allocations: 3.119 MB / 269.4 MB, free: 15.43 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000345/0.0003451, allocations: 8 kB / 319.3 MB, free: 63.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06998/0.07034, allocations: 39.39 MB / 358.7 MB, free: 23.96 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoiseProperties): time 0.0018/0.07218, allocations: 1.498 MB / 360.2 MB, free: 22.45 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.07366, allocations: 0.9473 MB / 361.1 MB, free: 21.49 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.07382, allocations: 4 kB / 361.1 MB, free: 21.49 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.07394, allocations: 11.86 kB / 361.1 MB, free: 21.48 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004566/0.0744, allocations: 83.72 kB / 361.2 MB, free: 21.39 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002934/0.07471, allocations: 107.8 kB / 361.3 MB, free: 21.29 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001898/0.07492, allocations: 191.5 kB / 361.5 MB, free: 21.1 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.07507, allocations: 52.2 kB / 361.6 MB, free: 21.05 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.07521, allocations: 79.67 kB / 361.6 MB, free: 20.97 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.07533, allocations: 87.64 kB / 361.7 MB, free: 20.89 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.118e-05/0.07537, allocations: 12 kB / 361.7 MB, free: 20.88 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002734/0.07565, allocations: 139.8 kB / 361.9 MB, free: 20.74 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.902e-05/0.0757, allocations: 39.83 kB / 361.9 MB, free: 20.7 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.906e-05/0.07576, allocations: 53.58 kB / 362 MB, free: 20.64 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002725/0.07604, allocations: 219.7 kB / 362.2 MB, free: 20.43 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.07606, allocations: 0 / 362.2 MB, free: 20.43 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.07607, allocations: 4 kB / 362.2 MB, free: 20.42 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.07608, allocations: 0 / 362.2 MB, free: 20.42 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.001084/0.07717, allocations: 0.5504 MB / 362.7 MB, free: 19.82 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.07721, allocations: 11.97 kB / 362.7 MB, free: 19.81 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002234/0.07744, allocations: 39.7 kB / 362.8 MB, free: 19.77 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002748/0.07773, allocations: 226.7 kB / 363 MB, free: 19.51 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.511e-05/0.07777, allocations: 16.23 kB / 363 MB, free: 19.49 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.007e-05/0.07782, allocations: 20 kB / 363 MB, free: 19.47 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004717/0.0783, allocations: 240.1 kB / 363.3 MB, free: 19.23 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.07832, allocations: 4 kB / 363.3 MB, free: 19.22 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.259e-05/0.07835, allocations: 4 kB / 363.3 MB, free: 19.22 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.07836, allocations: 4 kB / 363.3 MB, free: 19.21 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004355/0.0788, allocations: 179.8 kB / 363.5 MB, free: 19.04 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008774/0.07969, allocations: 0.6485 MB / 364.1 MB, free: 18.34 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.08071, allocations: 397.4 kB / 364.5 MB, free: 17.93 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/0.08101, allocations: 141.8 kB / 364.6 MB, free: 17.79 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.08105, allocations: 0 / 364.6 MB, free: 17.79 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000373/0.08142, allocations: 220.2 kB / 364.9 MB, free: 17.55 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.08144, allocations: 8 kB / 364.9 MB, free: 17.55 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009555/0.0824, allocations: 423.4 kB / 365.3 MB, free: 17.13 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.08246, allocations: 89.05 kB / 365.4 MB, free: 17.03 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.08263, allocations: 211.8 kB / 365.6 MB, free: 16.81 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.009e-05/0.08267, allocations: 37.7 kB / 365.6 MB, free: 16.77 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.606e-05/0.08275, allocations: 132.4 kB / 365.7 MB, free: 16.63 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.652e-05/0.0828, allocations: 71.06 kB / 365.8 MB, free: 16.56 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.396e-05/0.08282, allocations: 4 kB / 365.8 MB, free: 16.56 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.283e-05/0.08289, allocations: 334.8 kB / 366.1 MB, free: 16.22 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002993/0.0832, allocations: 143.9 kB / 366.3 MB, free: 16.08 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003041/0.08351, allocations: 173.9 kB / 366.4 MB, free: 15.91 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003026/0.08382, allocations: 155.9 kB / 366.6 MB, free: 15.75 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.08384, allocations: 0 / 366.6 MB, free: 15.75 MB / 250.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006968/0.08454, allocations: 402.4 kB / 367 MB, free: 15.36 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.08457, allocations: 10.81 kB / 367 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.08458, allocations: 3.938 kB / 367 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.0846, allocations: 0 / 367 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002677/0.08487, allocations: 75.89 kB / 367.1 MB, free: 15.27 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.08489, allocations: 0 / 367.1 MB, free: 15.27 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.08506, allocations: 47.72 kB / 367.1 MB, free: 15.22 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.0851, allocations: 16 kB / 367.1 MB, free: 15.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001259/0.08523, allocations: 144.7 kB / 367.3 MB, free: 15.06 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.211e-05/0.08527, allocations: 19.77 kB / 367.3 MB, free: 15.04 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.029e-05/0.08533, allocations: 25.86 kB / 367.3 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.08534, allocations: 4 kB / 367.3 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.08535, allocations: 0 / 367.3 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.08536, allocations: 0 / 367.3 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.08637, allocations: 0.6893 MB / 368 MB, free: 14.27 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.08639, allocations: 0 / 368 MB, free: 14.27 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002375/0.08663, allocations: 55.89 kB / 368.1 MB, free: 14.21 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.08665, allocations: 4 kB / 368.1 MB, free: 14.21 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.08667, allocations: 11.98 kB / 368.1 MB, free: 14.2 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.08668, allocations: 0 / 368.1 MB, free: 14.2 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.08669, allocations: 0 / 368.1 MB, free: 14.2 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009478/0.08764, allocations: 0.5472 MB / 368.6 MB, free: 13.63 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.943e-05/0.08769, allocations: 96.84 kB / 368.7 MB, free: 13.52 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.656e-05/0.08773, allocations: 8.062 kB / 368.7 MB, free: 13.51 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001859/0.08792, allocations: 31.97 kB / 368.8 MB, free: 13.48 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.29e-05/0.08799, allocations: 19.97 kB / 368.8 MB, free: 13.46 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.667e-05/0.08801, allocations: 11.95 kB / 368.8 MB, free: 13.45 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001106/0.08812, allocations: 149.5 kB / 369 MB, free: 13.3 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.08813, allocations: 0 / 369 MB, free: 13.3 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003216/0.08846, allocations: 79.83 kB / 369 MB, free: 13.22 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002953/0.08876, allocations: 173.7 kB / 369.2 MB, free: 13.05 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006692/0.08944, allocations: 316 kB / 369.5 MB, free: 12.74 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.08945, allocations: 0 / 369.5 MB, free: 12.74 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003068/0.08977, allocations: 139.9 kB / 369.6 MB, free: 12.61 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.09008, allocations: 19.98 kB / 369.7 MB, free: 12.59 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008166/0.09091, allocations: 0.5446 MB / 370.2 MB, free: 12 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001738/0.0911, allocations: 0.7398 MB / 370.9 MB, free: 11.23 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.115e-05/0.09119, allocations: 23.42 kB / 371 MB, free: 11.21 MB / 250.7 MB Notification: Performance of SimCode: time 3.21e-07/0.09119, allocations: 0 / 371 MB, free: 11.21 MB / 250.7 MB Notification: Performance of Templates: time 0.005347/0.09655, allocations: 3.476 MB / 374.4 MB, free: 7.742 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++ -Winvalid-pch -O0 -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/c/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:183: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:308: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