Running command: translateModel(Modelica.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator") Notification: Performance of loadModel(Modelica): time 1.866/1.866, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.977e-05/2.988e-05, allocations: 4 kB / 292.1 MB, free: 8.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08766/0.08771, allocations: 50.42 MB / 342.5 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3499/0.4377, allocations: 76.46 MB / 419 MB, free: 1.648 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.4379, allocations: 62.59 kB / 419.1 MB, free: 1.617 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007876/0.4458, allocations: 1.999 MB / 421.1 MB, free: 15.88 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4459, allocations: 0 / 421.1 MB, free: 15.88 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.4459, allocations: 4 kB / 421.1 MB, free: 15.88 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003818/0.4463, allocations: 338.1 kB / 421.4 MB, free: 15.51 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.4464, allocations: 16.03 kB / 421.4 MB, free: 15.49 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.973e-05/0.4464, allocations: 0 / 421.4 MB, free: 15.49 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.4466, allocations: 167 kB / 421.6 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.4466, allocations: 0 / 421.6 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.613e-05/0.4466, allocations: 3.984 kB / 421.6 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.138e-05/0.4467, allocations: 33.64 kB / 421.6 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.337e-06/0.4467, allocations: 0 / 421.6 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.983e-06/0.4468, allocations: 0 / 421.6 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.4468, allocations: 7.953 kB / 421.6 MB, free: 15.24 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.27e-05/0.4468, allocations: 0 / 421.6 MB, free: 15.24 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000341/0.4472, allocations: 248.4 kB / 421.9 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.165e-05/0.4472, allocations: 22.58 kB / 421.9 MB, free: 14.93 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.28e-05/0.4473, allocations: 20.41 kB / 421.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.034e-06/0.4473, allocations: 0 / 421.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001193/0.4474, allocations: 59.8 kB / 422 MB, free: 14.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 2.456e-06/0.4475, allocations: 0 / 422 MB, free: 14.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001689/0.4476, allocations: 53.36 kB / 422 MB, free: 14.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.4477, allocations: 55.41 kB / 422.1 MB, free: 14.72 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.251e-05/0.4478, allocations: 100.9 kB / 422.2 MB, free: 14.62 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.4478, allocations: 25.7 kB / 422.2 MB, free: 14.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.832e-05/0.4479, allocations: 154.6 kB / 422.4 MB, free: 14.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.527e-05/0.448, allocations: 15.81 kB / 422.4 MB, free: 14.42 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.121e-06/0.448, allocations: 0 / 422.4 MB, free: 14.42 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.4481, allocations: 314.8 kB / 422.7 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.56e-05/0.4482, allocations: 7.938 kB / 422.7 MB, free: 14.1 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.584e-05/0.4482, allocations: 17.72 kB / 422.7 MB, free: 14.08 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.359e-05/0.4483, allocations: 7.875 kB / 422.7 MB, free: 14.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.249e-06/0.4483, allocations: 0 / 422.7 MB, free: 14.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001254/0.4484, allocations: 53.5 kB / 422.8 MB, free: 14.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.4484, allocations: 11.98 kB / 422.8 MB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.4485, allocations: 32 / 422.8 MB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.4485, allocations: 7.953 kB / 422.8 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.079e-05/0.4486, allocations: 8 kB / 422.8 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.4486, allocations: 0 / 422.8 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.728e-05/0.4486, allocations: 3.906 kB / 422.8 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.166e-06/0.4486, allocations: 0 / 422.8 MB, free: 13.99 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: 4 ($whenCondition1,impureRandom.y,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 9.044e-05/0.4487, allocations: 112.6 kB / 422.9 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.24e-05/0.4488, allocations: 0 / 422.9 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.46e-05/0.4488, allocations: 12.02 kB / 422.9 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.364e-06/0.4488, allocations: 3.953 kB / 422.9 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.184e-06/0.4488, allocations: 4 kB / 422.9 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.58e-06/0.4489, allocations: 0 / 422.9 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000304/0.4492, allocations: 278.2 kB / 423.2 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.608e-06/0.4492, allocations: 4 kB / 423.2 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.843e-05/0.4492, allocations: 0 / 423.2 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.383e-06/0.4492, allocations: 0 / 423.2 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.4493, allocations: 7.516 kB / 423.2 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.336e-06/0.4493, allocations: 0 / 423.2 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.4493, allocations: 7.984 kB / 423.2 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001542/0.4494, allocations: 143.4 kB / 423.4 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.216e-05/0.4495, allocations: 92.89 kB / 423.4 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.5e-05/0.4495, allocations: 0 / 423.4 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.469e-05/0.4496, allocations: 3.953 kB / 423.4 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.318e-05/0.4497, allocations: 0 / 423.4 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.4497, allocations: 7.984 kB / 423.5 MB, free: 13.25 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.156e-05/0.4497, allocations: 87.59 kB / 423.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.36e-07/0.4498, allocations: 0 / 423.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003885/0.4502, allocations: 39.88 kB / 423.6 MB, free: 13.13 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: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * 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.0005449/0.4507, allocations: 193.7 kB / 423.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.94e-05/0.4508, allocations: 23.55 kB / 423.8 MB, free: 12.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.693e-06/0.4509, allocations: 3.938 kB / 423.8 MB, free: 12.93 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.652e-05/0.4509, allocations: 7.875 kB / 423.8 MB, free: 12.93 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001571/0.4511, allocations: 4 kB / 423.8 MB, free: 12.92 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002282/0.4513, allocations: 90.62 kB / 423.9 MB, free: 12.81 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003349/0.4517, allocations: 0.6809 MB / 424.6 MB, free: 12.1 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.137e-05/0.4517, allocations: 11.44 kB / 424.6 MB, free: 12.09 MB / 346.7 MB Notification: Performance of SimCode: time 1.524e-06/0.4517, allocations: 0 / 424.6 MB, free: 12.09 MB / 346.7 MB Notification: Performance of Templates: time 0.003608/0.4553, allocations: 1.337 MB / 425.9 MB, free: 10.76 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.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.Blocks.Examples.Noise.ImpureGeneratorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGeneratorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGeneratorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGeneratorFunctions.cpp:137: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.Blocks.Examples.Noise.ImpureGeneratorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGeneratorFunctions.cpp:333: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 'OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGeneratorCalcHelperMain.o] Error 1