Running command: translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadModel(ModelicaTest): time 2.277/2.277, allocations: 270 MB / 282.7 MB, free: 1.902 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.051e-05/3.059e-05, allocations: 8 kB / 347 MB, free: 3.281 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3202, allocations: 61.88 MB / 408.8 MB, free: 10.79 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1324/0.4527, allocations: 85.83 MB / 494.7 MB, free: 4.844 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000194/0.4529, allocations: 55.97 kB / 494.7 MB, free: 4.789 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0148/0.4678, allocations: 3.326 MB / 498.1 MB, free: 1.457 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.899e-06/0.4678, allocations: 0 / 498.1 MB, free: 1.457 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.804e-06/0.4678, allocations: 0 / 498.1 MB, free: 1.457 MB / 410.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.0004827/0.4683, allocations: 392 kB / 498.4 MB, free: 1.023 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.4684, allocations: 8.031 kB / 498.4 MB, free: 1.016 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.568e-05/0.4685, allocations: 11.94 kB / 498.5 MB, free: 1.004 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002556/0.4687, allocations: 175 kB / 498.6 MB, free: 0.793 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.4688, allocations: 4 kB / 498.6 MB, free: 0.7891 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.469e-05/0.4688, allocations: 7.953 kB / 498.6 MB, free: 0.7812 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002283/0.469, allocations: 89.62 kB / 498.7 MB, free: 0.6875 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.203e-06/0.4691, allocations: 0 / 498.7 MB, free: 0.6875 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.452e-05/0.4691, allocations: 8 kB / 498.7 MB, free: 0.6797 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.717e-06/0.4691, allocations: 0 / 498.7 MB, free: 0.6797 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.821e-05/0.4692, allocations: 19.98 kB / 498.8 MB, free: 0.6602 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002322/0.4694, allocations: 165.6 kB / 498.9 MB, free: 460 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001206/0.4696, allocations: 54.5 kB / 499 MB, free: 396 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.253e-05/0.4697, allocations: 20.86 kB / 499 MB, free: 372 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.4697, allocations: 4 kB / 499 MB, free: 368 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002861/0.47, allocations: 135.2 kB / 499.1 MB, free: 220 kB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 2.785e-06/0.47, allocations: 0 / 499.1 MB, free: 220 kB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003088/0.4703, allocations: 109.6 kB / 499.2 MB, free: 104 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.482e-05/0.4704, allocations: 63.56 kB / 499.3 MB, free: 28 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.4705, allocations: 88.91 kB / 499.4 MB, free: 15.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.35e-05/0.4706, allocations: 37.69 kB / 499.4 MB, free: 15.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.821e-05/0.4707, allocations: 154.7 kB / 499.6 MB, free: 15.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.124e-05/0.4707, allocations: 19.72 kB / 499.6 MB, free: 15.71 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.173e-05/0.4707, allocations: 8 kB / 499.6 MB, free: 15.71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.4709, allocations: 314.8 kB / 499.9 MB, free: 15.39 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.468e-05/0.471, allocations: 28 kB / 499.9 MB, free: 15.36 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.4711, allocations: 66.86 kB / 500 MB, free: 15.27 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000124/0.4712, allocations: 65.67 kB / 0.4883 GB, free: 15.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.223e-06/0.4713, allocations: 0 / 0.4883 GB, free: 15.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003154/0.4716, allocations: 151.2 kB / 0.4885 GB, free: 15.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.001e-05/0.4716, allocations: 33.66 kB / 0.4885 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.4717, allocations: 4 kB / 0.4885 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.4717, allocations: 224 / 0.4885 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.4718, allocations: 23.98 kB / 0.4885 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.4719, allocations: 3.984 kB / 0.4885 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.756e-05/0.4719, allocations: 15.91 kB / 0.4886 GB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.301e-05/0.472, allocations: 12 kB / 0.4886 GB, free: 14.95 MB / 426.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = false ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,samples) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0001593/0.4721, allocations: 122.2 kB / 0.4887 GB, free: 14.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.999e-05/0.4722, allocations: 4.188 kB / 0.4887 GB, free: 14.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.158e-05/0.4722, allocations: 16.03 kB / 0.4887 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.257e-06/0.4723, allocations: 8 kB / 0.4887 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.24e-06/0.4723, allocations: 0 / 0.4887 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.136e-06/0.4723, allocations: 0 / 0.4887 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002127/0.4725, allocations: 177.5 kB / 0.4889 GB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.106e-06/0.4725, allocations: 4 kB / 0.4889 GB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.49e-05/0.4726, allocations: 7.984 kB / 0.4889 GB, free: 14.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.822e-06/0.4726, allocations: 0 / 0.4889 GB, free: 14.55 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.4726, allocations: 0 / 0.4889 GB, free: 14.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.057e-06/0.4727, allocations: 7.891 kB / 0.4889 GB, free: 14.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.564e-06/0.4727, allocations: 0 / 0.4889 GB, free: 14.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002764/0.473, allocations: 133.1 kB / 0.489 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.782e-05/0.473, allocations: 85.02 kB / 0.4891 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.577e-05/0.4731, allocations: 11.98 kB / 0.4891 GB, free: 14.28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.4733, allocations: 19.92 kB / 0.4891 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.372e-05/0.4733, allocations: 11.94 kB / 0.4892 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.06e-05/0.4734, allocations: 8 kB / 0.4892 GB, free: 14.24 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.784e-05/0.4734, allocations: 87.27 kB / 0.4892 GB, free: 14.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.4734, allocations: 0 / 0.4892 GB, free: 14.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004196/0.4739, allocations: 55.94 kB / 0.4893 GB, free: 14.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0005665/0.4745, allocations: 211.6 kB / 0.4895 GB, free: 13.91 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002508/0.4747, allocations: 119.7 kB / 0.4896 GB, free: 13.79 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.688e-06/0.4747, allocations: 4 kB / 0.4896 GB, free: 13.78 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 8.445e-05/0.4748, allocations: 31.98 kB / 0.4897 GB, free: 13.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.475, allocations: 3.016 kB / 0.4897 GB, free: 13.75 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004203/0.4754, allocations: 138.6 kB / 0.4898 GB, free: 13.59 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003852/0.4758, allocations: 0.6887 MB / 0.4905 GB, free: 12.87 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.331e-05/0.4759, allocations: 11.44 kB / 0.4905 GB, free: 12.86 MB / 426.7 MB Notification: Performance of SimCode: time 1.428e-06/0.4759, allocations: 0 / 0.4905 GB, free: 12.86 MB / 426.7 MB Notification: Performance of Templates: time 0.005064/0.481, allocations: 2.008 MB / 0.4924 GB, free: 10.85 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegersFunctions.cpp:133:3: error: no matching function for call to 'ModelicaRandom_xorshift64star' ModelicaRandom_xorshift64star(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:72:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift64star(_In_ int* state_in, ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegersFunctions.cpp:334:3: error: no matching function for call to 'ModelicaRandom_setInternalState_xorshift1024star' ModelicaRandom_setInternalState_xorshift1024star(ConstArray(rngState_).getData(), rngState_.getDim(1), id__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:78:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_setInternalState_xorshift1024star( ^ 2 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.o] Error 1