Running command: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadModel(Modelica): time 1.913/1.913, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.041e-05/3.055e-05, allocations: 4 kB / 292.1 MB, free: 8.848 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09142/0.09147, allocations: 50.41 MB / 342.5 MB, free: 6.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3554/0.4469, allocations: 76.6 MB / 419.1 MB, free: 1.512 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.4471, allocations: 66.78 kB / 419.2 MB, free: 1.477 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01299/0.4601, allocations: 2.97 MB / 422.2 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.865e-06/0.4602, allocations: 0 / 422.2 MB, free: 14.9 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.511e-06/0.4602, allocations: 0 / 422.2 MB, free: 14.9 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.000635/0.4609, allocations: 0.5476 MB / 422.7 MB, free: 14.31 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.4609, allocations: 12.02 kB / 422.7 MB, free: 14.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.4611, allocations: 23.77 kB / 422.8 MB, free: 14.28 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.4613, allocations: 178.9 kB / 422.9 MB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.4613, allocations: 4 kB / 422.9 MB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.625e-05/0.4614, allocations: 4 kB / 422.9 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004257/0.4618, allocations: 277.3 kB / 423.2 MB, free: 13.83 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.517e-06/0.4618, allocations: 1.625 kB / 423.2 MB, free: 13.83 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.159e-05/0.4618, allocations: 4 kB / 423.2 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.595e-06/0.4619, allocations: 3.953 kB / 423.2 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002061/0.4621, allocations: 139.9 kB / 423.4 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002667/0.4624, allocations: 218.5 kB / 423.6 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004417/0.4628, allocations: 493.2 kB / 424.1 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003998/0.4632, allocations: 466.9 kB / 424.5 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.014e-06/0.4633, allocations: 0 / 424.5 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000764/0.464, allocations: 480.5 kB / 425 MB, free: 12.65 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 2.816e-06/0.4641, allocations: 4 kB / 425 MB, free: 12.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.0008679/0.4649, allocations: 0.5078 MB / 425.5 MB, free: 12.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.4651, allocations: 163.9 kB / 425.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.4652, allocations: 100.5 kB / 425.7 MB, free: 11.92 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.4652, allocations: 29.7 kB / 425.8 MB, free: 11.89 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.898e-05/0.4653, allocations: 151.3 kB / 425.9 MB, free: 11.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.319e-05/0.4654, allocations: 85.81 kB / 426 MB, free: 11.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.956e-06/0.4655, allocations: 0 / 426 MB, free: 11.66 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.4656, allocations: 329.5 kB / 426.3 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.4658, allocations: 86.09 kB / 426.4 MB, free: 11.28 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.4659, allocations: 101.1 kB / 426.5 MB, free: 11.2 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.4662, allocations: 204.7 kB / 426.7 MB, free: 11.03 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.533e-06/0.4662, allocations: 0 / 426.7 MB, free: 11.03 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004915/0.4667, allocations: 344.7 kB / 427.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001277/0.4668, allocations: 109.8 kB / 427.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.302e-06/0.4668, allocations: 0 / 427.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.4669, allocations: 4.078 kB / 427.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.042e-06/0.4669, allocations: 4 kB / 427.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.952e-06/0.4669, allocations: 3.984 kB / 427.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.259e-05/0.467, allocations: 27.7 kB / 427.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/0.467, allocations: 8 kB / 427.2 MB, free: 10.58 MB / 346.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: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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.0003221/0.4674, allocations: 276.6 kB / 427.5 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.596e-05/0.4675, allocations: 23.81 kB / 427.5 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.797e-05/0.4675, allocations: 5.344 kB / 427.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.028e-06/0.4675, allocations: 4.5 kB / 427.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.415e-06/0.4675, allocations: 0 / 427.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.821e-06/0.4676, allocations: 0 / 427.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002933/0.4679, allocations: 256 kB / 427.8 MB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.4679, allocations: 4 kB / 427.8 MB, free: 9.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.716e-06/0.4679, allocations: 4 kB / 427.8 MB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.4679, allocations: 0 / 427.8 MB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.405e-05/0.468, allocations: 31.83 kB / 427.8 MB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.757e-06/0.468, allocations: 0 / 427.8 MB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.971e-06/0.468, allocations: 0 / 427.8 MB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.4699, allocations: 1.228 MB / 429 MB, free: 8.891 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.804e-05/0.47, allocations: 96.86 kB / 429.1 MB, free: 8.777 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001733/0.4702, allocations: 75.94 kB / 429.2 MB, free: 8.703 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.049e-05/0.4703, allocations: 8 kB / 429.2 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.233e-05/0.4704, allocations: 11.3 kB / 429.2 MB, free: 8.688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.288e-05/0.4705, allocations: 27.3 kB / 429.2 MB, free: 8.664 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.695e-05/0.4706, allocations: 86.55 kB / 429.3 MB, free: 8.582 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.46e-07/0.4706, allocations: 0 / 429.3 MB, free: 8.582 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005122/0.4711, allocations: 115.2 kB / 429.4 MB, free: 8.473 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.00081/0.4719, allocations: 327.1 kB / 429.8 MB, free: 8.188 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002219/0.4742, allocations: 2.119 MB / 431.9 MB, free: 7.098 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.05e-06/0.4742, allocations: 0 / 431.9 MB, free: 7.098 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002088/0.4763, allocations: 2.189 MB / 434.1 MB, free: 6.086 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001828/0.4765, allocations: 8.578 kB / 434.1 MB, free: 6.078 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006792/0.4772, allocations: 331.3 kB / 434.4 MB, free: 5.734 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004315/0.4776, allocations: 0.7247 MB / 435.1 MB, free: 4.977 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.871e-05/0.4777, allocations: 10.56 kB / 435.1 MB, free: 4.969 MB / 346.7 MB Notification: Performance of SimCode: time 1.704e-06/0.4777, allocations: 7.938 kB / 435.1 MB, free: 4.961 MB / 346.7 MB Notification: Performance of Templates: time 0.007601/0.4853, allocations: 3.331 MB / 438.5 MB, free: 1.629 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.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 OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersFunctions.cpp:87: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 OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersFunctions.cpp:118: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 OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersFunctions.cpp:205: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 OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersFunctions.cpp:406: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( ^ 4 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbersCalcHelperMain.o] Error 1