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.001425/0.001425, allocations: 172.9 kB / 16.07 MB, free: 5.73 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.223/1.223, allocations: 170.5 MB / 187.3 MB, free: 1.082 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.001543/0.001543, allocations: 114.1 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.02061/0.02061, allocations: 3.108 MB / 268.9 MB, free: 15.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000466/0.0004661, allocations: 12.28 kB / 318.8 MB, free: 63.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0673/0.06778, allocations: 39.13 MB / 357.9 MB, free: 24.3 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_Noise.Blocks.Examples.NoiseExamples.Distributions): time 0.001497/0.06933, allocations: 1.266 MB / 359.2 MB, free: 23.02 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002177/0.07154, allocations: 1.524 MB / 360.7 MB, free: 21.49 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.963e-05/0.07164, allocations: 0 / 360.7 MB, free: 21.49 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.07177, allocations: 3.938 kB / 360.7 MB, free: 21.48 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004754/0.07225, allocations: 91.66 kB / 360.8 MB, free: 21.39 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006794/0.07295, allocations: 271.3 kB / 361.1 MB, free: 21.13 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001336/0.0731, allocations: 131.6 kB / 361.2 MB, free: 21 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.967e-05/0.07315, allocations: 21.03 kB / 361.2 MB, free: 20.98 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.631e-05/0.07325, allocations: 59.72 kB / 361.3 MB, free: 20.92 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.483e-05/0.07332, allocations: 55.75 kB / 361.3 MB, free: 20.87 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.244e-05/0.07335, allocations: 8 kB / 361.3 MB, free: 20.86 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006805/0.07404, allocations: 487 kB / 361.8 MB, free: 20.38 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.2e-05/0.0741, allocations: 35.78 kB / 361.8 MB, free: 20.35 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.352e-05/0.07416, allocations: 55.66 kB / 361.9 MB, free: 20.29 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005053/0.07467, allocations: 295.7 kB / 362.2 MB, free: 20 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.07469, allocations: 0 / 362.2 MB, free: 20 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.0747, allocations: 0 / 362.2 MB, free: 20 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.07471, allocations: 0 / 362.2 MB, free: 20 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.0007445/0.07546, allocations: 0.491 MB / 362.7 MB, free: 19.46 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.07551, allocations: 8.031 kB / 362.7 MB, free: 19.46 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002318/0.07575, allocations: 36.67 kB / 362.7 MB, free: 19.42 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/0.0759, allocations: 204 kB / 362.9 MB, free: 19.18 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.07594, allocations: 8.359 kB / 362.9 MB, free: 19.18 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/0.07597, allocations: 8.375 kB / 362.9 MB, free: 19.17 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002539/0.07623, allocations: 148.6 kB / 363.1 MB, free: 19 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/0.07625, allocations: 0 / 363.1 MB, free: 19 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.07627, allocations: 8 kB / 363.1 MB, free: 19 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.07628, allocations: 0 / 363.1 MB, free: 19 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/0.07648, allocations: 79.88 kB / 363.2 MB, free: 18.92 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000225/0.07672, allocations: 257.1 kB / 363.4 MB, free: 18.61 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003108/0.07704, allocations: 208.9 kB / 363.6 MB, free: 18.36 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.07718, allocations: 84.39 kB / 363.7 MB, free: 18.26 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.0772, allocations: 0 / 363.7 MB, free: 18.26 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002971/0.0775, allocations: 183.4 kB / 363.9 MB, free: 18.05 MB / 250.7 MB Notification: Performance of pre-optimization done (n=19): time 1.282e-06/0.07752, allocations: 0 / 363.9 MB, free: 18.05 MB / 250.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005899/0.07811, allocations: 297.4 kB / 364.2 MB, free: 17.75 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.963e-05/0.07818, allocations: 174.3 kB / 364.3 MB, free: 17.55 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.07834, allocations: 186.6 kB / 364.5 MB, free: 17.35 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.07838, allocations: 49.88 kB / 364.6 MB, free: 17.3 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.039e-05/0.07843, allocations: 108.1 kB / 364.7 MB, free: 17.19 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.637e-05/0.07848, allocations: 47.39 kB / 364.7 MB, free: 17.14 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.801e-05/0.07853, allocations: 33.7 kB / 364.8 MB, free: 17.1 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.376e-05/0.0786, allocations: 330.8 kB / 365.1 MB, free: 16.77 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/0.07878, allocations: 95.95 kB / 365.2 MB, free: 16.68 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.07896, allocations: 143.3 kB / 365.3 MB, free: 16.52 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003257/0.0793, allocations: 235.6 kB / 365.5 MB, free: 16.28 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.07931, allocations: 0 / 365.5 MB, free: 16.28 MB / 250.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004328/0.07975, allocations: 305.3 kB / 365.8 MB, free: 15.98 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.07977, allocations: 4 kB / 365.8 MB, free: 15.97 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.07979, allocations: 0 / 365.8 MB, free: 15.97 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.07981, allocations: 4 kB / 365.8 MB, free: 15.97 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.07995, allocations: 32.02 kB / 365.9 MB, free: 15.94 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.07996, allocations: 7.938 kB / 365.9 MB, free: 15.93 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.451e-05/0.08005, allocations: 23.73 kB / 365.9 MB, free: 15.91 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.08008, allocations: 11.98 kB / 365.9 MB, free: 15.89 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,truncatedNormalNoise.localSeed,truncatedNormalNoise.r_raw,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r,truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[1],$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 (25): * Single equations (assignments): 23 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001074/0.08019, allocations: 150 kB / 366.1 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.099e-05/0.08023, allocations: 23.75 kB / 366.1 MB, free: 15.71 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.259e-05/0.08026, allocations: 17.39 kB / 366.1 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.08027, allocations: 0 / 366.1 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.08028, allocations: 4 kB / 366.1 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.08029, allocations: 0 / 366.1 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001477/0.08045, allocations: 221.6 kB / 366.3 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.08046, allocations: 7.938 kB / 366.3 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.064e-05/0.08052, allocations: 15.98 kB / 366.3 MB, free: 15.41 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.08054, allocations: 4 kB / 366.4 MB, free: 15.41 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.08055, allocations: 7.938 kB / 366.4 MB, free: 15.4 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.08056, allocations: 0 / 366.4 MB, free: 15.4 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.08057, allocations: 0 / 366.4 MB, free: 15.4 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003707/0.08094, allocations: 279.5 kB / 366.6 MB, free: 15.1 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.502e-05/0.08099, allocations: 100.8 kB / 366.7 MB, free: 14.98 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.21e-05/0.08103, allocations: 12 kB / 366.7 MB, free: 14.97 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.712e-05/0.08111, allocations: 11.98 kB / 366.8 MB, free: 14.96 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.32e-05/0.08117, allocations: 19.92 kB / 366.8 MB, free: 14.94 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.08119, allocations: 8 kB / 366.8 MB, free: 14.93 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.576e-05/0.08128, allocations: 139.2 kB / 366.9 MB, free: 14.79 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.08129, allocations: 0 / 366.9 MB, free: 14.79 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004111/0.0817, allocations: 131.9 kB / 367 MB, free: 14.66 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 (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.000643/0.08235, allocations: 292 kB / 367.3 MB, free: 14.37 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003853/0.08275, allocations: 203.8 kB / 367.5 MB, free: 14.17 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.08277, allocations: 4 kB / 367.5 MB, free: 14.17 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001611/0.08293, allocations: 84.16 kB / 367.6 MB, free: 14.09 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002041/0.08315, allocations: 19.92 kB / 367.6 MB, free: 14.07 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004857/0.08364, allocations: 358.2 kB / 368 MB, free: 13.67 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001362/0.08379, allocations: 0.7167 MB / 368.7 MB, free: 12.93 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.098e-05/0.08384, allocations: 15.44 kB / 368.7 MB, free: 12.91 MB / 250.7 MB Notification: Performance of SimCode: time 3.81e-07/0.08385, allocations: 4 kB / 368.7 MB, free: 12.91 MB / 250.7 MB Notification: Performance of Templates: time 0.005907/0.08976, allocations: 4.029 MB / 372.8 MB, free: 8.883 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++ -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.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: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.DistributionsInitialize.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); ^ ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.DistributionsInitialize.cpp:273: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:289: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