Running command: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadModel(ModelicaTest): time 2.453/2.453, allocations: 270 MB / 282.7 MB, free: 1.812 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.996e-05/2.998e-05, allocations: 4 kB / 347 MB, free: 3.137 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3227, allocations: 61.89 MB / 408.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1331/0.4558, allocations: 86.47 MB / 495.3 MB, free: 4.16 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002042/0.4561, allocations: 63.97 kB / 495.4 MB, free: 4.098 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01946/0.4756, allocations: 5.769 MB / 0.4894 GB, free: 14.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.322e-06/0.4756, allocations: 0 / 0.4894 GB, free: 14.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.4756, allocations: 7.938 kB / 0.4894 GB, free: 14.31 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006168/0.4763, allocations: 474.1 kB / 0.4899 GB, free: 13.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.4763, allocations: 16.02 kB / 0.4899 GB, free: 13.79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.076e-05/0.4764, allocations: 15.81 kB / 0.4899 GB, free: 13.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.4765, allocations: 178.8 kB / 0.4901 GB, free: 13.56 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.904e-05/0.4766, allocations: 12 kB / 0.4901 GB, free: 13.55 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.766e-05/0.4766, allocations: 27.95 kB / 0.4901 GB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002132/0.4769, allocations: 128.3 kB / 0.4902 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.442e-06/0.4769, allocations: 0 / 0.4902 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.856e-06/0.4769, allocations: 4 kB / 0.4902 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.4769, allocations: 0 / 0.4902 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001403/0.4771, allocations: 92.41 kB / 0.4903 GB, free: 13.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002665/0.4773, allocations: 226.2 kB / 0.4905 GB, free: 13.02 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002264/0.4776, allocations: 166.9 kB / 0.4907 GB, free: 12.85 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/0.4778, allocations: 149.7 kB / 0.4908 GB, free: 12.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.631e-06/0.4778, allocations: 4 kB / 0.4908 GB, free: 12.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002415/0.478, allocations: 165.9 kB / 0.491 GB, free: 12.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=54): time 2.404e-06/0.4781, allocations: 0 / 0.491 GB, free: 12.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.001268/0.4793, allocations: 0.5716 MB / 0.4916 GB, free: 11.94 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.4795, allocations: 107.8 kB / 0.4917 GB, free: 11.82 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.63e-05/0.4796, allocations: 116.7 kB / 0.4918 GB, free: 11.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.73e-05/0.4797, allocations: 69.67 kB / 0.4918 GB, free: 11.63 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.968e-05/0.4798, allocations: 163.9 kB / 0.492 GB, free: 11.47 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001663/0.48, allocations: 130.5 kB / 0.4921 GB, free: 11.34 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.48, allocations: 20.03 kB / 0.4921 GB, free: 11.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.4802, allocations: 346.8 kB / 0.4925 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003731/0.4806, allocations: 177.9 kB / 0.4926 GB, free: 10.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006935/0.4813, allocations: 0.5199 MB / 0.4931 GB, free: 10.11 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005625/0.4819, allocations: 263.6 kB / 0.4934 GB, free: 9.855 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-05/0.4819, allocations: 4 kB / 0.4934 GB, free: 9.852 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00145/0.4834, allocations: 0.6892 MB / 0.4941 GB, free: 9.156 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.4834, allocations: 12.06 kB / 0.4941 GB, free: 9.145 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.607e-05/0.4835, allocations: 19.94 kB / 0.4941 GB, free: 9.125 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.052e-05/0.4835, allocations: 20 kB / 0.4941 GB, free: 9.105 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004446/0.484, allocations: 115.7 kB / 0.4942 GB, free: 8.992 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.462e-05/0.484, allocations: 23.94 kB / 0.4943 GB, free: 8.969 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003139/0.4843, allocations: 63.38 kB / 0.4943 GB, free: 8.906 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.016e-05/0.4844, allocations: 40 kB / 0.4944 GB, free: 8.867 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 ($PRE.state33[33],state33[33],$PRE.state33[32],state33[32],$PRE.state33[31],state33[31],$PRE.state33[30],state33[30],$PRE.state33[29],state33[29],$PRE.state33[28],state33[28],$PRE.state33[27],state33[27],$PRE.state33[26],state33[26],$PRE.state33[25],state33[25],$PRE.state33[24],state33[24],$PRE.state33[23],state33[23],$PRE.state33[22],state33[22],$PRE.state33[21],state33[21],$PRE.state33[20],state33[20],$PRE.state33[19],state33[19],$PRE.state33[18],state33[18],$PRE.state33[17],state33[17],$PRE.state33[16],state33[16],$PRE.state33[15],state33[15],$PRE.state33[14],state33[14],$PRE.state33[13],state33[13],$PRE.state33[12],state33[12],$PRE.state33[11],state33[11],$PRE.state33[10],state33[10],$PRE.state33[9],state33[9],$PRE.state33[8],state33[8],$PRE.state33[7],state33[7],$PRE.state33[6],state33[6],$PRE.state33[5],state33[5],$PRE.state33[4],state33[4],$PRE.state33[3],state33[3],$PRE.state33[2],state33[2],$PRE.state33[1],state33[1],$PRE.state4c[4],state4c[4],$PRE.state4c[3],state4c[3],$PRE.state4c[2],state4c[2],$PRE.state4c[1],state4c[1],$PRE.state4b[4],state4b[4],$PRE.state4b[3],state4b[3],$PRE.state4b[2],state4b[2],$PRE.state4b[1],state4b[1],$PRE.state4a[4],state4a[4],$PRE.state4a[3],state4a[3],$PRE.state4a[2],state4a[2],$PRE.state4a[1],state4a[1],$PRE.state2[2],state2[2],$PRE.state2[1],state2[1],$PRE.r33,r33,$PRE.r4c,r4c,$PRE.r4b,r4b,$PRE.r4a,r4a,$PRE.r2,r2,$PRE.result,result,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * Array equations: 0 * 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.0002734/0.4847, allocations: 220.6 kB / 0.4946 GB, free: 8.645 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/0.4847, allocations: 19.7 kB / 0.4946 GB, free: 8.625 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.348e-05/0.4848, allocations: 5.656 kB / 0.4946 GB, free: 8.613 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.406e-06/0.4848, allocations: 3.953 kB / 0.4946 GB, free: 8.609 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.4848, allocations: 4 kB / 0.4946 GB, free: 8.605 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.4848, allocations: 0 / 0.4946 GB, free: 8.605 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000212/0.4851, allocations: 193.8 kB / 0.4948 GB, free: 8.367 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.279e-06/0.4851, allocations: 3.984 kB / 0.4948 GB, free: 8.363 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.007e-06/0.4851, allocations: 0 / 0.4948 GB, free: 8.363 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.957e-06/0.4851, allocations: 0 / 0.4948 GB, free: 8.363 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.888e-06/0.4851, allocations: 0 / 0.4948 GB, free: 8.363 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.4851, allocations: 4 kB / 0.4948 GB, free: 8.359 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-06/0.4851, allocations: 3.953 kB / 0.4948 GB, free: 8.355 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.4867, allocations: 0.6148 MB / 0.4954 GB, free: 7.719 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.822e-05/0.4868, allocations: 92.86 kB / 0.4955 GB, free: 7.609 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.701e-05/0.4868, allocations: 4 kB / 0.4955 GB, free: 7.605 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.548e-05/0.4869, allocations: 4 kB / 0.4955 GB, free: 7.602 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.512e-05/0.4869, allocations: 3.953 kB / 0.4955 GB, free: 7.598 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.571e-06/0.4869, allocations: 0 / 0.4955 GB, free: 7.598 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.384e-05/0.487, allocations: 75.28 kB / 0.4956 GB, free: 7.523 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.63e-07/0.487, allocations: 0 / 0.4956 GB, free: 7.523 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007416/0.4877, allocations: 115.9 kB / 0.4957 GB, free: 7.41 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: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007475/0.4885, allocations: 297.8 kB / 0.496 GB, free: 7.156 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008405/0.4893, allocations: 441.4 kB / 0.4964 GB, free: 6.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.022e-06/0.4894, allocations: 0 / 0.4964 GB, free: 6.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002043/0.4896, allocations: 156.8 kB / 0.4965 GB, free: 6.578 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001203/0.4897, allocations: 4.75 kB / 0.4965 GB, free: 6.574 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000645/0.4904, allocations: 374.1 kB / 0.4969 GB, free: 6.18 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.4908, allocations: 0.7376 MB / 0.4976 GB, free: 5.414 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.46e-05/0.4909, allocations: 19.44 kB / 0.4976 GB, free: 5.398 MB / 426.7 MB Notification: Performance of SimCode: time 4.135e-06/0.4909, allocations: 0 / 0.4976 GB, free: 5.398 MB / 426.7 MB Notification: Performance of Templates: time 0.00844/0.4994, allocations: 4.057 MB / 0.5016 GB, free: 1.336 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbers.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.TestRandomNumbersCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbersCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbersCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbersFunctions.cpp:116:3: error: no matching function for call to 'ModelicaRandom_xorshift1024star' ModelicaRandom_xorshift1024star(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:76:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift1024star(_In_ int* state_in, ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbersCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbersFunctions.cpp:166:3: error: no matching function for call to 'ModelicaRandom_xorshift128plus' ModelicaRandom_xorshift128plus(ConstArray(stateIn_).getData(), stateOut_.getData(), &result__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaRandom.h:74:22: note: candidate function not viable: 1st argument ('const int *') would lose const qualifier MODELICA_EXPORT void ModelicaRandom_xorshift128plus(_In_ int* state_in, ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbersCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbersFunctions.cpp:253: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, ^ 3 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbersCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomNumbersCalcHelperMain.o] Error 1