Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.52/2.52, allocations: 270 MB / 282.6 MB, free: 1.828 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.985e-05/3.987e-05, allocations: 4 kB / 347 MB, free: 3.121 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4132/0.4133, allocations: 61.87 MB / 408.9 MB, free: 10.65 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1574/0.5707, allocations: 85.83 MB / 494.8 MB, free: 4.707 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002007/0.571, allocations: 55.97 kB / 494.8 MB, free: 4.652 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01674/0.5878, allocations: 3.33 MB / 498.1 MB, free: 1.316 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5878, allocations: 0 / 498.1 MB, free: 1.316 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.5878, allocations: 0 / 498.1 MB, free: 1.316 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.0005577/0.5884, allocations: 392 kB / 498.5 MB, free: 0.8828 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/0.5885, allocations: 8.031 kB / 498.5 MB, free: 0.875 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.038e-05/0.5885, allocations: 34.56 kB / 498.6 MB, free: 0.832 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.037e-05/0.5886, allocations: 4 kB / 498.6 MB, free: 0.8281 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002859/0.5889, allocations: 190.9 kB / 498.8 MB, free: 0.6016 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.5889, allocations: 7.984 kB / 498.8 MB, free: 0.5938 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.208e-05/0.589, allocations: 7.953 kB / 498.8 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002677/0.5892, allocations: 89.64 kB / 498.9 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.5893, allocations: 0 / 498.9 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.5893, allocations: 0 / 498.9 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.5893, allocations: 4 kB / 498.9 MB, free: 500 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.738e-05/0.5894, allocations: 19.98 kB / 498.9 MB, free: 480 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002358/0.5897, allocations: 173.6 kB / 499 MB, free: 256 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000148/0.5898, allocations: 54.52 kB / 499.1 MB, free: 192 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.086e-05/0.5899, allocations: 24.84 kB / 499.1 MB, free: 164 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.5899, allocations: 3.953 kB / 499.1 MB, free: 160 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003359/0.5903, allocations: 131.2 kB / 499.3 MB, free: 16 kB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 2.194e-06/0.5903, allocations: 0 / 499.3 MB, free: 16 kB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003649/0.5907, allocations: 101.9 kB / 499.4 MB, free: 15.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.5908, allocations: 55.41 kB / 499.4 MB, free: 15.84 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.112e-05/0.5909, allocations: 104.9 kB / 499.5 MB, free: 15.73 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.923e-05/0.5909, allocations: 29.7 kB / 499.5 MB, free: 15.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.447e-05/0.591, allocations: 154.7 kB / 499.7 MB, free: 15.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.288e-05/0.591, allocations: 23.7 kB / 499.7 MB, free: 15.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.075e-05/0.5911, allocations: 4 kB / 499.7 MB, free: 15.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.5912, allocations: 318.8 kB / 0.4883 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.179e-05/0.5913, allocations: 23.98 kB / 0.4883 GB, free: 15.17 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.5915, allocations: 74.84 kB / 0.4884 GB, free: 15.07 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.5916, allocations: 62.33 kB / 0.4885 GB, free: 15.01 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.5916, allocations: 0 / 0.4885 GB, free: 15.01 MB / 426.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000333/0.592, allocations: 143.2 kB / 0.4886 GB, free: 14.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.409e-05/0.5921, allocations: 37.66 kB / 0.4886 GB, free: 14.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.5921, allocations: 12.22 kB / 0.4886 GB, free: 14.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.5921, allocations: 7.984 kB / 0.4887 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.5923, allocations: 16 kB / 0.4887 GB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.5923, allocations: 7.938 kB / 0.4887 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.752e-05/0.5924, allocations: 7.906 kB / 0.4887 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.5924, allocations: 7.984 kB / 0.4887 GB, free: 14.75 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.000182/0.5926, allocations: 128.9 kB / 0.4888 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.525e-05/0.5926, allocations: 4 kB / 0.4888 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.786e-05/0.5927, allocations: 16.03 kB / 0.4888 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.5927, allocations: 0 / 0.4888 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.5927, allocations: 0 / 0.4888 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.5928, allocations: 0 / 0.4888 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002106/0.593, allocations: 181.5 kB / 0.489 GB, free: 14.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.593, allocations: 0 / 0.489 GB, free: 14.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.907e-05/0.5931, allocations: 4 kB / 0.489 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.5931, allocations: 0 / 0.489 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.995e-05/0.5931, allocations: 8.078 kB / 0.489 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.5931, allocations: 7.891 kB / 0.489 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.5931, allocations: 4 kB / 0.489 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003102/0.5935, allocations: 133 kB / 0.4892 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.126e-05/0.5935, allocations: 84.95 kB / 0.4892 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.5936, allocations: 4 kB / 0.4892 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002911/0.5939, allocations: 23.97 kB / 0.4893 GB, free: 14.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.606e-05/0.5939, allocations: 15.89 kB / 0.4893 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-05/0.594, allocations: 11.98 kB / 0.4893 GB, free: 14.04 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.048e-05/0.594, allocations: 75.28 kB / 0.4894 GB, free: 13.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.594, allocations: 0 / 0.4894 GB, free: 13.96 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004601/0.5945, allocations: 59.98 kB / 0.4894 GB, free: 13.91 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.001132/0.5956, allocations: 0.7663 MB / 0.4902 GB, free: 13.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002942/0.596, allocations: 127.3 kB / 0.4903 GB, free: 13.01 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.596, allocations: 0 / 0.4903 GB, free: 13.01 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.5961, allocations: 36.11 kB / 0.4903 GB, free: 12.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001602/0.5963, allocations: 15.89 kB / 0.4903 GB, free: 12.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007258/0.597, allocations: 184.2 kB / 0.4905 GB, free: 12.73 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.5973, allocations: 0.6887 MB / 0.4912 GB, free: 12.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.438e-05/0.5974, allocations: 19.44 kB / 0.4912 GB, free: 12 MB / 426.7 MB Notification: Performance of SimCode: time 9.22e-07/0.5974, allocations: 448 / 0.4912 GB, free: 12 MB / 426.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -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( ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestRandomIntegersCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestRandomIntegersFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 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