Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.Distributions.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.Distributions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.Distributions") translateModel(Modelica_Noise.Blocks.Examples.NoiseExamples.Distributions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.Distributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001025/0.001025, allocations: 174.4 kB / 15.77 MB, free: 6.035 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.011/1.011, allocations: 170.8 MB / 187.3 MB, free: 1.016 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.00144/0.00144, allocations: 120.6 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.01838/0.01838, allocations: 3.12 MB / 269.4 MB, free: 15.43 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003017/0.0003017, allocations: 8 kB / 319.3 MB, free: 63.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04755/0.04787, allocations: 39.39 MB / 358.7 MB, free: 23.97 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_Noise.Blocks.Examples.NoiseExamples.Distributions): time 0.001096/0.049, allocations: 1.239 MB / 359.9 MB, free: 22.72 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.05045, allocations: 1.373 MB / 361.3 MB, free: 21.34 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.544e-05/0.0505, allocations: 4 kB / 361.3 MB, free: 21.33 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.711e-05/0.05058, allocations: 3.938 kB / 361.3 MB, free: 21.33 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003136/0.0509, allocations: 83.66 kB / 361.4 MB, free: 21.25 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003788/0.05129, allocations: 275.3 kB / 361.6 MB, free: 20.98 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.842e-05/0.05139, allocations: 127.6 kB / 361.8 MB, free: 20.85 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.579e-05/0.05144, allocations: 17.06 kB / 361.8 MB, free: 20.84 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.851e-05/0.05151, allocations: 51.77 kB / 361.8 MB, free: 20.79 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.045e-05/0.05156, allocations: 67.67 kB / 361.9 MB, free: 20.72 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.05159, allocations: 4 kB / 361.9 MB, free: 20.71 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004694/0.05206, allocations: 467.1 kB / 362.4 MB, free: 20.26 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.185e-05/0.0521, allocations: 27.92 kB / 362.4 MB, free: 20.23 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.013e-05/0.05214, allocations: 49.58 kB / 362.4 MB, free: 20.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002698/0.05242, allocations: 291.7 kB / 362.7 MB, free: 19.89 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.05243, allocations: 0 / 362.7 MB, free: 19.89 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.05243, allocations: 0 / 362.7 MB, free: 19.89 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.05245, allocations: 0 / 362.7 MB, free: 19.89 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0005283/0.05298, allocations: 0.4908 MB / 363.2 MB, free: 19.35 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.69e-05/0.05302, allocations: 15.97 kB / 363.2 MB, free: 19.34 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001893/0.05321, allocations: 35.8 kB / 363.3 MB, free: 19.3 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.05333, allocations: 202.7 kB / 363.5 MB, free: 19.06 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.05336, allocations: 3.984 kB / 363.5 MB, free: 19.06 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.713e-05/0.05338, allocations: 15.98 kB / 363.5 MB, free: 19.04 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002155/0.0536, allocations: 143 kB / 363.6 MB, free: 18.88 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.05362, allocations: 0 / 363.6 MB, free: 18.88 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.05364, allocations: 0 / 363.6 MB, free: 18.88 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.05364, allocations: 4 kB / 363.6 MB, free: 18.88 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.05385, allocations: 79.88 kB / 363.7 MB, free: 18.8 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001791/0.05404, allocations: 264.9 kB / 364 MB, free: 18.48 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/0.05433, allocations: 197 kB / 364.2 MB, free: 18.24 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.05446, allocations: 88.31 kB / 364.2 MB, free: 18.14 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.386e-06/0.05448, allocations: 7.938 kB / 364.2 MB, free: 18.13 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002526/0.05474, allocations: 171.6 kB / 364.4 MB, free: 17.94 MB / 250.7 MB Notification: Performance of pre-optimization done (n=19): time 1.573e-06/0.05475, allocations: 4 kB / 364.4 MB, free: 17.93 MB / 250.7 MB Notification: Performance of matching and sorting (n=19): time 0.00053/0.05528, allocations: 293.6 kB / 364.7 MB, free: 17.64 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.05533, allocations: 166.2 kB / 364.9 MB, free: 17.44 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.05546, allocations: 187.4 kB / 365 MB, free: 17.25 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.05549, allocations: 49.69 kB / 365.1 MB, free: 17.19 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.28e-05/0.05553, allocations: 108.3 kB / 365.2 MB, free: 17.08 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.654e-05/0.05557, allocations: 51.47 kB / 365.3 MB, free: 17.03 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.526e-06/0.05559, allocations: 0 / 365.3 MB, free: 17.03 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 4.005e-05/0.05563, allocations: 330.8 kB / 365.6 MB, free: 16.7 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.0558, allocations: 103.9 kB / 365.7 MB, free: 16.6 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.05597, allocations: 146.4 kB / 365.8 MB, free: 16.44 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001616/0.05614, allocations: 111.6 kB / 365.9 MB, free: 16.34 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.05615, allocations: 0 / 365.9 MB, free: 16.34 MB / 250.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003924/0.05655, allocations: 301.2 kB / 366.2 MB, free: 16.04 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.05656, allocations: 4 kB / 366.2 MB, free: 16.03 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.05657, allocations: 96 / 366.2 MB, free: 16.03 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.05659, allocations: 7.984 kB / 366.2 MB, free: 16.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.05672, allocations: 24.08 kB / 366.3 MB, free: 16 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.05673, allocations: 15.92 kB / 366.3 MB, free: 15.98 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.992e-05/0.05682, allocations: 19.84 kB / 366.3 MB, free: 15.96 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.05684, allocations: 4 kB / 366.3 MB, free: 15.96 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 29 (n,$whenCondition2,$PRE.truncatedNormalNoise.state[1],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.r,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r_raw,truncatedNormalNoise.localSeed,$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 (25): * Single equations (assignments): 23 * Array equations: 2 * 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 9.077e-05/0.05693, allocations: 149.8 kB / 366.4 MB, free: 15.8 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.29e-05/0.05696, allocations: 15.81 kB / 366.5 MB, free: 15.79 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.607e-05/0.05699, allocations: 21.39 kB / 366.5 MB, free: 15.77 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.057, allocations: 4 kB / 366.5 MB, free: 15.77 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.05701, allocations: 7.938 kB / 366.5 MB, free: 15.76 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.05702, allocations: 0 / 366.5 MB, free: 15.76 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001271/0.05715, allocations: 221.4 kB / 366.7 MB, free: 15.5 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.05716, allocations: 7.938 kB / 366.7 MB, free: 15.49 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.568e-05/0.05722, allocations: 11.98 kB / 366.7 MB, free: 15.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.05723, allocations: 4 kB / 366.7 MB, free: 15.47 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.05725, allocations: 12 kB / 366.7 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.05725, allocations: 0 / 366.7 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.05726, allocations: 4.469 kB / 366.7 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003342/0.0576, allocations: 280.2 kB / 367 MB, free: 15.15 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.918e-05/0.05764, allocations: 100.8 kB / 367.1 MB, free: 15.04 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.699e-05/0.05767, allocations: 12 kB / 367.1 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.136e-05/0.05776, allocations: 7.984 kB / 367.1 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.073e-05/0.0578, allocations: 23.92 kB / 367.2 MB, free: 14.99 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.948e-06/0.05782, allocations: 4 kB / 367.2 MB, free: 14.99 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.525e-05/0.0579, allocations: 135.2 kB / 367.3 MB, free: 14.86 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.05791, allocations: 0 / 367.3 MB, free: 14.86 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003206/0.05823, allocations: 124 kB / 367.4 MB, free: 14.73 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 17 (n,truncatedNormalNoise.localSeed,$whenCondition2,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,uniformNoise.localSeed,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0004955/0.05873, allocations: 311.4 kB / 367.7 MB, free: 14.43 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000347/0.05909, allocations: 203.9 kB / 367.9 MB, free: 14.23 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.0591, allocations: 0 / 367.9 MB, free: 14.23 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000147/0.05925, allocations: 83.89 kB / 368 MB, free: 14.14 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001631/0.05943, allocations: 10.77 kB / 368 MB, free: 14.14 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003618/0.05979, allocations: 343.9 kB / 368.4 MB, free: 13.76 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.957e-05/0.0599, allocations: 0.7206 MB / 369.1 MB, free: 13.01 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.705e-05/0.05995, allocations: 15.44 kB / 369.1 MB, free: 12.99 MB / 250.7 MB Notification: Performance of SimCode: time 2.31e-07/0.05995, allocations: 0 / 369.1 MB, free: 12.99 MB / 250.7 MB Notification: Performance of Templates: time 0.004408/0.06437, allocations: 4.041 MB / 373.1 MB, free: 8.961 MB / 250.7 MB make -j1 -f Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.Distributions.makefile make -j1 -f Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.Distributions.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.DistributionsCalcHelperMain.o OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.cpp In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.cpp:28: In file included from ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.DistributionsFunctions.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.DistributionsCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.DistributionsFunctions.cpp:211: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.DistributionsCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.DistributionsFunctions.cpp:293: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.DistributionsCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.DistributionsFunctions.cpp:487: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.DistributionsCalcHelperMain.cpp:29: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.DistributionsInitialize.cpp:164: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.DistributionsInitialize.cpp:180:145: error: use of undeclared identifier 'state_' _functions->Modelica__Noise_Math_Random_Utilities_initialStateWithXorshift64star(_uniformNoise_P_localSeed_,_uniformNoise_P_actualGlobalSeed_,state_.getDim(1),tmp3); ^ ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.DistributionsInitialize.cpp:297: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, tmp6); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~ ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.DistributionsInitialize.cpp:313:161: error: use of undeclared identifier 'state_' _functions->Modelica__Noise_Math_Random_Utilities_initialStateWithXorshift64star(_truncatedNormalNoise_P_localSeed_,_truncatedNormalNoise_P_actualGlobalSeed_,state_.getDim(1),tmp8); ^ In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.cpp:33: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.Distributions.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, tmp78); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~ ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.Distributions.cpp:349: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, tmp83); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~ 4 warnings and 6 errors generated. make: *** [: OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.DistributionsCalcHelperMain.o] Error 1