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.001035/0.001035, allocations: 168 kB / 15.77 MB, free: 6.355 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.048/1.048, allocations: 170.8 MB / 187.3 MB, free: 1.027 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.001537/0.001536, allocations: 118 kB / 226.8 MB, free: 10.09 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.02849/0.02849, allocations: 3.124 MB / 269.4 MB, free: 15.44 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003766/0.0003767, allocations: 11.98 kB / 319.3 MB, free: 63.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0561/0.05649, allocations: 39.4 MB / 358.7 MB, free: 23.96 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_Noise.Blocks.Examples.NoiseExamples.UniformNoise): time 0.001102/0.05763, allocations: 1.114 MB / 359.8 MB, free: 22.84 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009654/0.05861, allocations: 0.7915 MB / 360.6 MB, free: 22.04 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.343e-05/0.05866, allocations: 0 / 360.6 MB, free: 22.04 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.133e-05/0.05874, allocations: 7.938 kB / 360.6 MB, free: 22.03 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003077/0.05905, allocations: 75.72 kB / 360.7 MB, free: 21.96 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001103/0.05917, allocations: 55.89 kB / 360.7 MB, free: 21.9 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 6.123e-05/0.05924, allocations: 59.83 kB / 360.8 MB, free: 21.84 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.342e-05/0.05929, allocations: 8.172 kB / 360.8 MB, free: 21.84 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.782e-05/0.05935, allocations: 27.86 kB / 360.8 MB, free: 21.81 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.574e-05/0.05939, allocations: 31.89 kB / 360.8 MB, free: 21.78 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.39e-05/0.05941, allocations: 4 kB / 360.9 MB, free: 21.77 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.05959, allocations: 123.8 kB / 361 MB, free: 21.65 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.515e-05/0.05963, allocations: 15.97 kB / 361 MB, free: 21.64 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.724e-05/0.05966, allocations: 37.64 kB / 361 MB, free: 21.59 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001334/0.0598, allocations: 120 kB / 361.1 MB, free: 21.48 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.05981, allocations: 7.938 kB / 361.1 MB, free: 21.47 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.05982, allocations: 4 kB / 361.2 MB, free: 21.46 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.156e-06/0.05983, allocations: 0 / 361.2 MB, free: 21.46 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.0003993/0.06023, allocations: 383.1 kB / 361.5 MB, free: 21.04 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.75e-05/0.06027, allocations: 12.03 kB / 361.5 MB, free: 21.03 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.06042, allocations: 19.89 kB / 361.6 MB, free: 21.01 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.039e-05/0.06052, allocations: 182.8 kB / 361.7 MB, free: 20.79 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.06055, allocations: 3.953 kB / 361.7 MB, free: 20.79 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.06057, allocations: 12 kB / 361.8 MB, free: 20.78 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000129/0.0607, allocations: 79.38 kB / 361.8 MB, free: 20.69 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.06072, allocations: 3.938 kB / 361.8 MB, free: 20.68 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-06/0.06073, allocations: 0 / 361.8 MB, free: 20.68 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.06074, allocations: 0 / 361.8 MB, free: 20.68 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.275e-05/0.06084, allocations: 31.92 kB / 361.9 MB, free: 20.65 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001326/0.06098, allocations: 202.5 kB / 362.1 MB, free: 20.4 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001516/0.06114, allocations: 93.09 kB / 362.2 MB, free: 20.29 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.931e-05/0.06121, allocations: 41.8 kB / 362.2 MB, free: 20.25 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.012e-05/0.06122, allocations: 11.92 kB / 362.2 MB, free: 20.23 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001648/0.06139, allocations: 101.1 kB / 362.3 MB, free: 20.12 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.142e-06/0.0614, allocations: 0 / 362.3 MB, free: 20.12 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002844/0.06169, allocations: 149.5 kB / 362.5 MB, free: 19.96 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/0.06173, allocations: 85.09 kB / 362.5 MB, free: 19.86 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.769e-05/0.06182, allocations: 140.9 kB / 362.7 MB, free: 19.71 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.06184, allocations: 29.7 kB / 362.7 MB, free: 19.68 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.648e-05/0.06187, allocations: 96.31 kB / 362.8 MB, free: 19.58 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.455e-05/0.0619, allocations: 27.72 kB / 362.8 MB, free: 19.55 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-06/0.06191, allocations: 4.125 kB / 362.8 MB, free: 19.55 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 4.412e-05/0.06196, allocations: 326.8 kB / 363.1 MB, free: 19.22 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.9e-05/0.06205, allocations: 43.97 kB / 363.2 MB, free: 19.18 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.764e-05/0.06213, allocations: 65.62 kB / 363.3 MB, free: 19.11 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.254e-05/0.06222, allocations: 51.98 kB / 363.3 MB, free: 19.06 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.06223, allocations: 4 kB / 363.3 MB, free: 19.05 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002121/0.06245, allocations: 161.5 kB / 363.5 MB, free: 18.89 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.819e-06/0.06247, allocations: 4 kB / 363.5 MB, free: 18.89 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.06248, allocations: 4 kB / 363.5 MB, free: 18.88 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.06249, allocations: 0 / 363.5 MB, free: 18.88 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.496e-05/0.06257, allocations: 15.88 kB / 363.5 MB, free: 18.87 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.439e-06/0.06258, allocations: 0 / 363.5 MB, free: 18.87 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.14e-05/0.06263, allocations: 19.86 kB / 363.5 MB, free: 18.85 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.06265, allocations: 4 kB / 363.5 MB, free: 18.84 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,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,uniformNoise.localSeed) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.029e-05/0.06272, allocations: 127.8 kB / 363.6 MB, free: 18.71 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.431e-05/0.06274, allocations: 11.86 kB / 363.6 MB, free: 18.7 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.9e-05/0.06277, allocations: 12.7 kB / 363.7 MB, free: 18.69 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.06277, allocations: 0 / 363.7 MB, free: 18.69 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.06278, allocations: 0 / 363.7 MB, free: 18.69 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.06279, allocations: 4 kB / 363.7 MB, free: 18.68 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.675e-05/0.06288, allocations: 181.6 kB / 363.8 MB, free: 18.46 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.06289, allocations: 0 / 363.8 MB, free: 18.46 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.9e-05/0.06292, allocations: 11.92 kB / 363.9 MB, free: 18.45 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.06293, allocations: 3.953 kB / 363.9 MB, free: 18.44 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.06294, allocations: 4 kB / 363.9 MB, free: 18.44 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.06295, allocations: 0 / 363.9 MB, free: 18.44 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.06295, allocations: 0 / 363.9 MB, free: 18.44 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001786/0.06314, allocations: 153.8 kB / 364 MB, free: 18.27 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.405e-05/0.06317, allocations: 89.02 kB / 364.1 MB, free: 18.16 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.06319, allocations: 11.94 kB / 364.1 MB, free: 18.15 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.682e-05/0.06324, allocations: 0 / 364.1 MB, free: 18.15 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.24e-05/0.06328, allocations: 7.984 kB / 364.1 MB, free: 18.14 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-06/0.06329, allocations: 4 kB / 364.1 MB, free: 18.14 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.51e-05/0.06334, allocations: 110.8 kB / 364.2 MB, free: 18.03 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.06334, allocations: 0 / 364.2 MB, free: 18.03 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002077/0.06355, allocations: 39.98 kB / 364.3 MB, free: 17.99 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 (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.0002315/0.06379, allocations: 177.2 kB / 364.4 MB, free: 17.82 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000187/0.06399, allocations: 95.95 kB / 364.5 MB, free: 17.73 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.064, allocations: 0 / 364.5 MB, free: 17.73 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.14e-05/0.06408, allocations: 35.98 kB / 364.6 MB, free: 17.69 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.06421, allocations: 3.938 kB / 364.6 MB, free: 17.69 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002533/0.06447, allocations: 223.9 kB / 364.8 MB, free: 17.44 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.817e-05/0.06458, allocations: 0.6926 MB / 365.5 MB, free: 16.72 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.211e-05/0.06461, allocations: 11.44 kB / 365.5 MB, free: 16.71 MB / 250.7 MB Notification: Performance of SimCode: time 2.2e-07/0.06462, allocations: 0 / 365.5 MB, free: 16.71 MB / 250.7 MB Notification: Performance of Templates: time 0.002626/0.06725, allocations: 1.853 MB / 367.3 MB, free: 14.86 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++ -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.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:151: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:167: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