Running command: translateModel(Modelica.Blocks.Examples.Noise.Distributions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.Distributions") Notification: Performance of loadModel(Modelica): time 1.883/1.883, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.996e-05/3.02e-05, allocations: 4 kB / 292.1 MB, free: 8.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08742/0.08748, allocations: 50.41 MB / 342.5 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3577/0.4452, allocations: 79.34 MB / 421.9 MB, free: 14.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/0.4455, allocations: 68.16 kB / 421.9 MB, free: 14.74 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03261/0.4782, allocations: 7.564 MB / 429.5 MB, free: 8.176 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.019e-06/0.4782, allocations: 7.984 kB / 429.5 MB, free: 8.168 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.815e-05/0.4782, allocations: 4 kB / 429.5 MB, free: 8.164 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008732/0.4791, allocations: 495.9 kB / 430 MB, free: 7.648 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.4792, allocations: 12.03 kB / 430 MB, free: 7.637 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002897/0.4795, allocations: 31.73 kB / 430 MB, free: 7.605 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/0.4797, allocations: 199.9 kB / 430.2 MB, free: 7.371 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.351e-05/0.4798, allocations: 11.36 kB / 430.3 MB, free: 7.363 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.4798, allocations: 12 kB / 430.3 MB, free: 7.352 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002433/0.4801, allocations: 111 kB / 430.4 MB, free: 7.246 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.1e-06/0.4801, allocations: 352 / 430.4 MB, free: 7.246 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.332e-05/0.4801, allocations: 11.33 kB / 430.4 MB, free: 7.238 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.034e-06/0.4802, allocations: 0 / 430.4 MB, free: 7.238 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000136/0.4803, allocations: 37.11 kB / 430.4 MB, free: 7.211 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009598/0.4813, allocations: 0.5638 MB / 431 MB, free: 6.641 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000312/0.4816, allocations: 128.6 kB / 431.1 MB, free: 6.508 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.4817, allocations: 54.06 kB / 431.2 MB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.22e-05/0.4818, allocations: 7.938 kB / 431.2 MB, free: 6.449 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002848/0.4821, allocations: 141.8 kB / 431.3 MB, free: 6.312 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 3.062e-06/0.4821, allocations: 4 kB / 431.3 MB, free: 6.309 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004492/0.4826, allocations: 180.1 kB / 431.5 MB, free: 6.156 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.364e-05/0.4827, allocations: 118.6 kB / 431.6 MB, free: 6.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002252/0.4829, allocations: 173.3 kB / 431.8 MB, free: 5.867 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.699e-05/0.483, allocations: 48.88 kB / 431.8 MB, free: 5.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.4831, allocations: 178.3 kB / 432 MB, free: 5.656 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.964e-05/0.4832, allocations: 39.08 kB / 432 MB, free: 5.625 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.142e-05/0.4832, allocations: 7.625 kB / 432 MB, free: 5.621 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.4834, allocations: 318.8 kB / 432.4 MB, free: 5.305 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/0.4836, allocations: 79.03 kB / 432.4 MB, free: 5.254 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.4838, allocations: 118 kB / 432.5 MB, free: 5.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.4841, allocations: 94.98 kB / 432.6 MB, free: 5.094 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.962e-06/0.4841, allocations: 4 kB / 432.6 MB, free: 5.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005892/0.4847, allocations: 249.8 kB / 432.9 MB, free: 4.898 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.4847, allocations: 7.953 kB / 432.9 MB, free: 4.891 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.34e-05/0.4848, allocations: 4 kB / 432.9 MB, free: 4.887 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.4848, allocations: 0 / 432.9 MB, free: 4.887 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002083/0.485, allocations: 31.98 kB / 432.9 MB, free: 4.855 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.819e-06/0.485, allocations: 4.094 kB / 432.9 MB, free: 4.852 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001543/0.4852, allocations: 34.67 kB / 433 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.381e-05/0.4853, allocations: 11.88 kB / 433 MB, free: 4.812 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,$PRE.truncatedNormalNoise.state[1],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.r,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r_raw,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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.0001516/0.4854, allocations: 132.4 kB / 433.1 MB, free: 4.684 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.528e-05/0.4855, allocations: 15.81 kB / 433.1 MB, free: 4.668 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.473e-05/0.4855, allocations: 17.3 kB / 433.1 MB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.131e-06/0.4855, allocations: 0 / 433.1 MB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.946e-06/0.4856, allocations: 4 kB / 433.1 MB, free: 4.648 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.4856, allocations: 7.984 kB / 433.2 MB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002877/0.4859, allocations: 215.7 kB / 433.4 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.067e-06/0.4859, allocations: 0 / 433.4 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.775e-05/0.486, allocations: 19.92 kB / 433.4 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.612e-06/0.486, allocations: 0 / 433.4 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/0.4861, allocations: 4 kB / 433.4 MB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.559e-06/0.4861, allocations: 3.953 kB / 433.4 MB, free: 4.375 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.221e-06/0.4861, allocations: 0 / 433.4 MB, free: 4.375 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004299/0.4865, allocations: 240.6 kB / 433.6 MB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.635e-05/0.4866, allocations: 107.8 kB / 433.7 MB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.271e-05/0.4867, allocations: 11.56 kB / 433.7 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.4868, allocations: 11.98 kB / 433.8 MB, free: 4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.971e-05/0.4869, allocations: 19.75 kB / 433.8 MB, free: 3.984 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-05/0.4869, allocations: 4 kB / 433.8 MB, free: 3.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001609/0.4871, allocations: 138 kB / 433.9 MB, free: 3.863 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.1e-07/0.4871, allocations: 0 / 433.9 MB, free: 3.863 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006858/0.4878, allocations: 154.3 kB / 434.1 MB, free: 3.723 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,$whenCondition1,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,n) * Number of discrete states: 8 (truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001316/0.4892, allocations: 417.2 kB / 434.5 MB, free: 3.348 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004642/0.4896, allocations: 221.9 kB / 434.7 MB, free: 3.164 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.454e-06/0.4897, allocations: 0 / 434.7 MB, free: 3.164 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001459/0.4898, allocations: 63.09 kB / 434.7 MB, free: 3.117 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000163/0.49, allocations: 14.27 kB / 434.8 MB, free: 3.105 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005354/0.4905, allocations: 229.9 kB / 435 MB, free: 2.875 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.491, allocations: 0.72 MB / 435.7 MB, free: 2.129 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.025e-05/0.491, allocations: 23.5 kB / 435.7 MB, free: 2.105 MB / 346.7 MB Notification: Performance of SimCode: time 1.571e-06/0.4911, allocations: 0 / 435.7 MB, free: 2.105 MB / 346.7 MB Notification: Performance of Templates: time 0.009174/0.5002, allocations: 4.319 MB / 440 MB, free: 13.8 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.Distributions.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.DistributionsCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DistributionsCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DistributionsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DistributionsFunctions.cpp:239: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.Blocks.Examples.Noise.DistributionsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DistributionsFunctions.cpp:326: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.DistributionsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DistributionsFunctions.cpp:520: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 OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DistributionsCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DistributionsInitialize.cpp:245:3: error: use of undeclared identifier '$PRE_P_truncatedNormalNoise_P_state_'; did you mean '_truncatedNormalNoise_P_state_'? $PRE_P_truncatedNormalNoise_P_state_.assign(tmp82); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _truncatedNormalNoise_P_state_ ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.Distributions.h:198:33: note: '_truncatedNormalNoise_P_state_' declared here StatArrayDim1 _truncatedNormalNoise_P_state_; ^ In file included from OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DistributionsCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DistributionsInitialize.cpp:373:3: error: use of undeclared identifier '$PRE_P_uniformNoise_P_state_'; did you mean '_uniformNoise_P_state_'? $PRE_P_uniformNoise_P_state_.assign(tmp87); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _uniformNoise_P_state_ ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.Distributions.h:199:33: note: '_uniformNoise_P_state_' declared here StatArrayDim1 _uniformNoise_P_state_; ^ 5 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DistributionsCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.DistributionsCalcHelperMain.o] Error 1