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.406/2.406, allocations: 269 MB / 284.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.178e-05/3.177e-05, allocations: 4 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1293, allocations: 61.9 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0007004/0.1301, allocations: 244.6 kB / 411.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009886/0.1311, allocations: 388.9 kB / 411.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.88e-05/0.1312, allocations: 0 / 411.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 6.059e-05/0.1312, allocations: 0 / 411.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.986e-05/0.1313, allocations: 11.97 kB / 411.6 MB, free: 12.23 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005809/0.1319, allocations: 131.6 kB / 411.7 MB, free: 12.1 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001136/0.1321, allocations: 39.94 kB / 411.7 MB, free: 12.06 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.96e-05/0.1321, allocations: 4 kB / 411.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.177e-05/0.1322, allocations: 35.91 kB / 411.8 MB, free: 12.02 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.1324, allocations: 67.89 kB / 411.8 MB, free: 11.95 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002316/0.1327, allocations: 67.94 kB / 411.9 MB, free: 11.89 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.74e-05/0.1327, allocations: 8 kB / 411.9 MB, free: 11.88 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.659e-05/0.1328, allocations: 19.92 kB / 411.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.035e-05/0.1329, allocations: 4 kB / 411.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002088/0.1331, allocations: 91.84 kB / 412 MB, free: 11.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1331, allocations: 0 / 412 MB, free: 11.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1331, allocations: 3.938 kB / 412 MB, free: 11.76 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.1331, allocations: 0 / 412 MB, free: 11.76 MB / 346.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.0005216/0.1337, allocations: 377 kB / 412.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.1337, allocations: 12.03 kB / 412.4 MB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.834e-05/0.1338, allocations: 4 kB / 412.4 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000212/0.134, allocations: 179 kB / 412.6 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.134, allocations: 0 / 412.6 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.105e-05/0.1341, allocations: 11.98 kB / 412.6 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002615/0.1343, allocations: 85.59 kB / 412.7 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1344, allocations: 0 / 412.7 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.339e-05/0.1344, allocations: 15.88 kB / 412.7 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1344, allocations: 0 / 412.7 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.308e-05/0.1345, allocations: 27.91 kB / 412.7 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002278/0.1348, allocations: 161.7 kB / 412.9 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001177/0.1349, allocations: 42.56 kB / 412.9 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.1349, allocations: 4 kB / 412.9 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003354/0.1353, allocations: 139.2 kB / 413.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 2.024e-06/0.1353, allocations: 4 kB / 413.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.000439/0.1357, allocations: 194.6 kB / 413.3 MB, free: 10.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.919e-05/0.1358, allocations: 67.39 kB / 413.3 MB, free: 10.26 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.366e-05/0.1359, allocations: 89 kB / 413.4 MB, free: 10.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/0.1359, allocations: 33.7 kB / 413.4 MB, free: 10.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.314e-05/0.136, allocations: 154.9 kB / 413.6 MB, free: 9.969 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.912e-05/0.1361, allocations: 27.92 kB / 413.6 MB, free: 9.941 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.594e-06/0.1361, allocations: 0 / 413.6 MB, free: 9.941 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1362, allocations: 318.8 kB / 413.9 MB, free: 9.621 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.644e-05/0.1363, allocations: 23.97 kB / 414 MB, free: 9.598 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.1364, allocations: 74.86 kB / 414 MB, free: 9.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.1366, allocations: 61.62 kB / 414.1 MB, free: 9.434 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1366, allocations: 4 kB / 414.1 MB, free: 9.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003244/0.1369, allocations: 151.2 kB / 414.2 MB, free: 9.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.113e-05/0.137, allocations: 33.7 kB / 414.3 MB, free: 9.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.137, allocations: 7.875 kB / 414.3 MB, free: 9.223 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.137, allocations: 8.141 kB / 414.3 MB, free: 9.215 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.1372, allocations: 15.98 kB / 414.3 MB, free: 9.199 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.1372, allocations: 4 kB / 414.3 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.134e-05/0.1373, allocations: 16.19 kB / 414.3 MB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.1374, allocations: 11.98 kB / 414.3 MB, free: 9.168 MB / 346.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) 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.0001754/0.1376, allocations: 129.7 kB / 414.5 MB, free: 9.031 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.468e-05/0.1376, allocations: 7.906 kB / 414.5 MB, free: 9.023 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.865e-05/0.1377, allocations: 12.23 kB / 414.5 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.1377, allocations: 7.953 kB / 414.5 MB, free: 9 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1377, allocations: 0 / 414.5 MB, free: 9 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.1377, allocations: 3.938 kB / 414.5 MB, free: 8.996 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001856/0.1379, allocations: 169.7 kB / 414.7 MB, free: 8.781 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1379, allocations: 0 / 414.7 MB, free: 8.781 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.823e-05/0.138, allocations: 7.984 kB / 414.7 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.138, allocations: 4 kB / 414.7 MB, free: 8.77 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.138, allocations: 0 / 414.7 MB, free: 8.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.138, allocations: 0 / 414.7 MB, free: 8.77 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.138, allocations: 3.953 kB / 414.7 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002781/0.1383, allocations: 129 kB / 414.8 MB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.233e-05/0.1384, allocations: 96.95 kB / 414.9 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.004e-05/0.1384, allocations: 7.984 kB / 414.9 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003775/0.1388, allocations: 15.98 kB / 414.9 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.461e-05/0.1389, allocations: 7.984 kB / 414.9 MB, free: 8.477 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/0.1389, allocations: 11.95 kB / 414.9 MB, free: 8.465 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.616e-05/0.139, allocations: 83.27 kB / 415 MB, free: 8.383 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.139, allocations: 0 / 415 MB, free: 8.383 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003651/0.1393, allocations: 40 kB / 415.1 MB, free: 8.344 MB / 346.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 (8): * Single equations (assignments): 5 * 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.0004971/0.1399, allocations: 194.4 kB / 415.2 MB, free: 8.168 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002805/0.1402, allocations: 123.3 kB / 415.4 MB, free: 8.035 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.1402, allocations: 4 kB / 415.4 MB, free: 8.031 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.534e-05/0.1403, allocations: 31.92 kB / 415.4 MB, free: 8 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.1404, allocations: 3.938 kB / 415.4 MB, free: 7.996 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004567/0.1409, allocations: 172.6 kB / 415.6 MB, free: 7.793 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.1412, allocations: 0.6926 MB / 416.3 MB, free: 7.074 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.543e-05/0.1412, allocations: 15.38 kB / 416.3 MB, free: 7.059 MB / 346.7 MB Notification: Performance of SimCode: time 6.21e-07/0.1413, allocations: 0 / 416.3 MB, free: 7.059 MB / 346.7 MB Notification: Performance of Templates: time 0.005158/0.1464, allocations: 1.838 MB / 418.1 MB, free: 5.223 MB / 346.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 -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -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:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegersFunctions.cpp:126: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:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegersFunctions.cpp:321: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( ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegersCalcHelperMain.cpp:36: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.cpp:241:38: error: no matching member function for call to 'pre' add_array(_discrete_events->pre(_cnt_), /*t4*/tmp5, tmp9); ~~~~~~~~~~~~~~~~~~^~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:29:11: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const double' for 1st argument double& pre(const double& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:30:8: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const int' for 1st argument int& pre(const int& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:31:9: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const bool' for 1st argument bool& pre(const bool& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:32:23: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const std::string' (aka 'const basic_string') for 1st argument std::string & pre(const std::string & var); ^ 3 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