Running command: translateModel(Modelica.Blocks.Examples.Noise.UniformNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise") Notification: Performance of loadModel(Modelica): time 1.849/1.849, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.036e-05/3.054e-05, allocations: 4 kB / 292.1 MB, free: 8.844 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08934/0.08939, allocations: 50.41 MB / 342.5 MB, free: 6.418 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3558/0.4453, allocations: 77.34 MB / 419.9 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000225/0.4456, allocations: 72.14 kB / 420 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01683/0.4624, allocations: 4.187 MB / 424.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.532e-06/0.4625, allocations: 0 / 424.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.494e-06/0.4625, allocations: 4 kB / 424.1 MB, free: 13.1 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006775/0.4632, allocations: 438.1 kB / 424.6 MB, free: 12.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.4632, allocations: 16.02 kB / 424.6 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000397/0.4636, allocations: 35.8 kB / 424.6 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001967/0.4639, allocations: 191.3 kB / 424.8 MB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.86e-05/0.4639, allocations: 4 kB / 424.8 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.947e-05/0.4639, allocations: 8 kB / 424.8 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000226/0.4642, allocations: 106.3 kB / 424.9 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.728e-06/0.4642, allocations: 0 / 424.9 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.4642, allocations: 0 / 424.9 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.4642, allocations: 3.953 kB / 424.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.4644, allocations: 43.67 kB / 425 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007664/0.4652, allocations: 387.6 kB / 425.3 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002639/0.4654, allocations: 100.8 kB / 425.4 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.4656, allocations: 49.16 kB / 425.5 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.2e-05/0.4656, allocations: 0 / 425.5 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002652/0.4659, allocations: 136.3 kB / 425.6 MB, free: 11.56 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 2.598e-06/0.4659, allocations: 0 / 425.6 MB, free: 11.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004224/0.4663, allocations: 160.2 kB / 425.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.327e-05/0.4664, allocations: 101.2 kB / 425.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.4666, allocations: 161.4 kB / 426 MB, free: 11.17 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.636e-05/0.4667, allocations: 49.19 kB / 426.1 MB, free: 11.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.4668, allocations: 170.7 kB / 426.3 MB, free: 10.96 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.638e-05/0.4669, allocations: 43.05 kB / 426.3 MB, free: 10.93 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.163e-05/0.467, allocations: 11.92 kB / 426.3 MB, free: 10.92 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.4671, allocations: 322.6 kB / 426.6 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000191/0.4673, allocations: 75.36 kB / 426.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000209/0.4676, allocations: 110.5 kB / 426.8 MB, free: 10.46 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002105/0.4678, allocations: 95.2 kB / 426.9 MB, free: 10.39 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.315e-06/0.4678, allocations: 0 / 426.9 MB, free: 10.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000537/0.4683, allocations: 235.2 kB / 427.1 MB, free: 10.21 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.4684, allocations: 4 kB / 427.1 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.464e-05/0.4684, allocations: 15.81 kB / 427.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.4684, allocations: 0 / 427.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002024/0.4687, allocations: 31.98 kB / 427.2 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.4687, allocations: 4 kB / 427.2 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.4688, allocations: 22.88 kB / 427.2 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.802e-05/0.4689, allocations: 14.92 kB / 427.2 MB, free: 10.13 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,$PRE.uniformNoise2.state[1],uniformNoise2.state[1],$PRE.uniformNoise2.state[2],uniformNoise2.state[2],$PRE.uniformNoise2.state[3],uniformNoise2.state[3],$PRE.uniformNoise2.state[4],uniformNoise2.state[4],$PRE.uniformNoise2.r,uniformNoise2.r,$PRE.uniformNoise2.r_raw,uniformNoise2.r_raw,$PRE.uniformNoise1.state[1],uniformNoise1.state[1],$PRE.uniformNoise1.state[2],uniformNoise1.state[2],$PRE.uniformNoise1.state[3],uniformNoise1.state[3],$PRE.uniformNoise1.state[4],uniformNoise1.state[4],$PRE.uniformNoise1.r,uniformNoise1.r,$PRE.uniformNoise1.r_raw,uniformNoise1.r_raw,globalSeed.id_impure,uniformNoise1.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise2.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 24 * 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.0001499/0.469, allocations: 130.7 kB / 427.3 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.616e-05/0.4691, allocations: 11.91 kB / 427.4 MB, free: 9.992 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.864e-05/0.4691, allocations: 16.83 kB / 427.4 MB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.908e-06/0.4692, allocations: 7.953 kB / 427.4 MB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.813e-06/0.4692, allocations: 0 / 427.4 MB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.4692, allocations: 0 / 427.4 MB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002781/0.4695, allocations: 210.5 kB / 427.6 MB, free: 9.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.477e-06/0.4695, allocations: 0 / 427.6 MB, free: 9.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.293e-05/0.4696, allocations: 8 kB / 427.6 MB, free: 9.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.254e-06/0.4696, allocations: 3.938 kB / 427.6 MB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.4696, allocations: 11.42 kB / 427.6 MB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.882e-06/0.4696, allocations: 0 / 427.6 MB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.46e-06/0.4697, allocations: 7.953 kB / 427.6 MB, free: 9.703 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003983/0.4701, allocations: 217.7 kB / 427.8 MB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.336e-05/0.4701, allocations: 92.91 kB / 427.9 MB, free: 9.387 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.801e-05/0.4702, allocations: 11.36 kB / 427.9 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.561e-05/0.4703, allocations: 15.95 kB / 427.9 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.172e-05/0.4704, allocations: 11.98 kB / 428 MB, free: 9.352 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/0.4704, allocations: 11.23 kB / 428 MB, free: 9.344 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001309/0.4706, allocations: 121.6 kB / 428.1 MB, free: 9.238 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.46e-07/0.4706, allocations: 0 / 428.1 MB, free: 9.238 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00042/0.471, allocations: 62.62 kB / 428.2 MB, free: 9.184 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: 14 ($whenCondition2,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw,$whenCondition1,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw) * Number of discrete states: 8 (uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * 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.0006495/0.4717, allocations: 244.4 kB / 428.4 MB, free: 8.977 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004325/0.4721, allocations: 219.5 kB / 428.6 MB, free: 8.793 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.71e-06/0.4722, allocations: 0 / 428.6 MB, free: 8.793 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.4723, allocations: 53.3 kB / 428.7 MB, free: 8.758 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001559/0.4725, allocations: 7.438 kB / 428.7 MB, free: 8.754 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004646/0.4729, allocations: 200.6 kB / 428.9 MB, free: 8.547 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.4734, allocations: 0.716 MB / 429.6 MB, free: 7.805 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.007e-05/0.4734, allocations: 15.44 kB / 429.6 MB, free: 7.789 MB / 346.7 MB Notification: Performance of SimCode: time 1.43e-06/0.4734, allocations: 0 / 429.6 MB, free: 7.789 MB / 346.7 MB Notification: Performance of Templates: time 0.006611/0.4801, allocations: 2.668 MB / 432.3 MB, free: 5.129 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.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.UniformNoiseCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseFunctions.cpp:90: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.UniformNoiseCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseFunctions.cpp:177: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.UniformNoiseCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseFunctions.cpp:371: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.UniformNoiseCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseInitialize.cpp:244:3: error: use of undeclared identifier '$PRE_P_uniformNoise2_P_state_'; did you mean '_uniformNoise2_P_state_'? $PRE_P_uniformNoise2_P_state_.assign(tmp41); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _uniformNoise2_P_state_ ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.h:198:33: note: '_uniformNoise2_P_state_' declared here StatArrayDim1 _uniformNoise2_P_state_; ^ In file included from OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseInitialize.cpp:370:3: error: use of undeclared identifier '$PRE_P_uniformNoise1_P_state_'; did you mean '_uniformNoise1_P_state_'? $PRE_P_uniformNoise1_P_state_.assign(tmp45); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _uniformNoise1_P_state_ ./OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoise.h:197:33: note: '_uniformNoise1_P_state_' declared here StatArrayDim1 _uniformNoise1_P_state_; ^ 5 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Blocks.Examples.Noise.UniformNoiseCalcHelperMain.o] Error 1