Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties.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.NormalNoiseProperties,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties") translateModel(Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0008091/0.0008092, allocations: 169.9 kB / 15.77 MB, free: 6.352 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.054/1.054, allocations: 170.8 MB / 187.3 MB, free: 1.039 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.001472/0.001472, allocations: 120.6 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.01858/0.01858, allocations: 3.116 MB / 269.4 MB, free: 15.45 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.00035, allocations: 11.98 kB / 319.3 MB, free: 63.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06253/0.0629, allocations: 39.4 MB / 358.7 MB, free: 23.96 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties): time 0.001483/0.06442, allocations: 1.49 MB / 360.2 MB, free: 22.46 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001516/0.06595, allocations: 1.19 MB / 361.4 MB, free: 21.26 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.189e-05/0.06605, allocations: 0 / 361.4 MB, free: 21.26 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001002/0.06616, allocations: 23.8 kB / 361.4 MB, free: 21.24 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003588/0.06653, allocations: 75.72 kB / 361.5 MB, free: 21.16 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003388/0.06688, allocations: 203.5 kB / 361.7 MB, free: 20.96 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001571/0.06705, allocations: 187.5 kB / 361.8 MB, free: 20.78 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.06719, allocations: 48.28 kB / 361.9 MB, free: 20.73 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.463e-05/0.06728, allocations: 75.69 kB / 362 MB, free: 20.66 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.256e-05/0.06738, allocations: 91.58 kB / 362.1 MB, free: 20.57 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.804e-05/0.06742, allocations: 8 kB / 362.1 MB, free: 20.56 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000373/0.0678, allocations: 319.4 kB / 362.4 MB, free: 20.25 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.822e-05/0.06784, allocations: 47.81 kB / 362.4 MB, free: 20.2 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.041e-05/0.06789, allocations: 53.64 kB / 362.5 MB, free: 20.14 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002569/0.06816, allocations: 279.6 kB / 362.7 MB, free: 19.87 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.06817, allocations: 3.984 kB / 362.8 MB, free: 19.87 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.06818, allocations: 0 / 362.8 MB, free: 19.87 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.06819, allocations: 0 / 362.8 MB, free: 19.87 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.0009312/0.06912, allocations: 0.5659 MB / 363.3 MB, free: 19.25 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.06917, allocations: 12.03 kB / 363.3 MB, free: 19.24 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.06936, allocations: 35.7 kB / 363.4 MB, free: 19.2 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001958/0.06956, allocations: 226.7 kB / 363.6 MB, free: 18.94 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.109e-05/0.0696, allocations: 20.23 kB / 363.6 MB, free: 18.92 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.674e-05/0.06964, allocations: 16 kB / 363.6 MB, free: 18.91 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004385/0.07009, allocations: 240.1 kB / 363.9 MB, free: 18.66 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.07011, allocations: 3.938 kB / 363.9 MB, free: 18.66 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.07013, allocations: 7.984 kB / 363.9 MB, free: 18.65 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.07015, allocations: 4 kB / 363.9 MB, free: 18.64 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004153/0.07056, allocations: 183.8 kB / 364.1 MB, free: 18.46 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008148/0.07139, allocations: 0.6407 MB / 364.7 MB, free: 17.77 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009678/0.07237, allocations: 402.5 kB / 365.1 MB, free: 17.36 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002707/0.07265, allocations: 141.8 kB / 365.2 MB, free: 17.21 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.056e-05/0.07268, allocations: 4 kB / 365.2 MB, free: 17.21 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003698/0.07306, allocations: 220.2 kB / 365.4 MB, free: 16.98 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.07307, allocations: 0 / 365.4 MB, free: 16.98 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009355/0.07401, allocations: 431.4 kB / 365.9 MB, free: 16.56 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/0.07407, allocations: 93.03 kB / 366 MB, free: 16.45 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001526/0.07423, allocations: 203.8 kB / 366.2 MB, free: 16.24 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.07426, allocations: 37.7 kB / 366.2 MB, free: 16.2 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.299e-05/0.07433, allocations: 124.5 kB / 366.3 MB, free: 16.07 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.536e-05/0.07438, allocations: 79.05 kB / 366.4 MB, free: 15.99 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.516e-05/0.0744, allocations: 8 kB / 366.4 MB, free: 15.98 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.094e-05/0.07447, allocations: 334.8 kB / 366.7 MB, free: 15.65 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003035/0.07478, allocations: 143.8 kB / 366.9 MB, free: 15.51 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000305/0.07509, allocations: 173.9 kB / 367 MB, free: 15.33 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002962/0.0754, allocations: 152 kB / 367.2 MB, free: 15.18 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.07541, allocations: 0 / 367.2 MB, free: 15.18 MB / 250.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006845/0.0761, allocations: 410.3 kB / 367.6 MB, free: 14.78 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.07612, allocations: 4 kB / 367.6 MB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.07613, allocations: 0 / 367.6 MB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.07615, allocations: 0 / 367.6 MB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.07643, allocations: 79.89 kB / 367.7 MB, free: 14.7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.07645, allocations: 0 / 367.7 MB, free: 14.7 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001557/0.07661, allocations: 47.72 kB / 367.7 MB, free: 14.65 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.07664, allocations: 8 kB / 367.7 MB, free: 14.64 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.0001163/0.07676, allocations: 148.7 kB / 367.9 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.07679, allocations: 19.77 kB / 367.9 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.373e-05/0.07685, allocations: 29.86 kB / 367.9 MB, free: 14.44 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.07686, allocations: 0 / 367.9 MB, free: 14.44 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.07687, allocations: 0 / 367.9 MB, free: 14.44 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.07688, allocations: 4 kB / 367.9 MB, free: 14.44 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009525/0.07784, allocations: 0.6893 MB / 368.6 MB, free: 13.69 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.07785, allocations: 0 / 368.6 MB, free: 13.69 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002323/0.07809, allocations: 51.97 kB / 368.7 MB, free: 13.64 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.0781, allocations: 0 / 368.7 MB, free: 13.64 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/0.07813, allocations: 11.98 kB / 368.7 MB, free: 13.63 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.07814, allocations: 0 / 368.7 MB, free: 13.63 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.07814, allocations: 3.938 kB / 368.7 MB, free: 13.62 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009049/0.07905, allocations: 0.5472 MB / 369.2 MB, free: 13.06 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.916e-05/0.0791, allocations: 108.9 kB / 369.3 MB, free: 12.93 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.406e-05/0.07914, allocations: 4 kB / 369.3 MB, free: 12.93 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.07933, allocations: 31.97 kB / 369.4 MB, free: 12.9 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/0.07938, allocations: 11.98 kB / 369.4 MB, free: 12.89 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.0794, allocations: 15.94 kB / 369.4 MB, free: 12.87 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.224e-05/0.0795, allocations: 149.5 kB / 369.5 MB, free: 12.73 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07951, allocations: 4 kB / 369.5 MB, free: 12.72 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003925/0.0799, allocations: 107.8 kB / 369.6 MB, free: 12.62 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.0004573/0.08037, allocations: 240.6 kB / 369.9 MB, free: 12.38 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006384/0.08102, allocations: 316 kB / 370.2 MB, free: 12.07 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.08103, allocations: 0 / 370.2 MB, free: 12.07 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.08134, allocations: 135.9 kB / 370.3 MB, free: 11.94 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.08164, allocations: 23.98 kB / 370.3 MB, free: 11.91 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007317/0.08238, allocations: 0.5517 MB / 370.9 MB, free: 11.33 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001493/0.08255, allocations: 0.7359 MB / 371.6 MB, free: 10.56 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.691e-05/0.08263, allocations: 35.36 kB / 371.7 MB, free: 10.53 MB / 250.7 MB Notification: Performance of SimCode: time 2.5e-07/0.08264, allocations: 0 / 371.7 MB, free: 10.53 MB / 250.7 MB Notification: Performance of Templates: time 0.005045/0.08769, allocations: 4.169 MB / 375.8 MB, free: 6.359 MB / 250.7 MB make -j1 -f Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties.makefile make -j1 -f Modelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties.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.NormalNoisePropertiesCalcHelperMain.o OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesCalcHelperMain.cpp In file included from OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesCalcHelperMain.cpp:28: In file included from ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesFunctions.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.NormalNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesFunctions.cpp:123: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.NormalNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesFunctions.cpp:205: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.NormalNoisePropertiesCalcHelperMain.cpp:28: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesFunctions.cpp:399: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.NormalNoisePropertiesCalcHelperMain.cpp:29: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesInitialize.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.NormalNoisePropertiesInitialize.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.NormalNoisePropertiesCalcHelperMain.cpp:33: ./OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoiseProperties.cpp:420: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, tmp80); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~ 2 warnings and 5 errors generated. make: *** [: OMCppModelica_Noise_Modelica_Noise.Blocks.Examples.NoiseExamples.NormalNoisePropertiesCalcHelperMain.o] Error 1