Running command: translateModel(Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Hw.x_scaled.1.|Hw.x_scaled.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence") Notification: Performance of loadModel(Modelica): time 2.202/2.202, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.336e-05/3.337e-05, allocations: 7.906 kB / 258.8 MB, free: 8.707 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3196, allocations: 44.51 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence): time 0.002414/0.3221, allocations: 1.331 MB / 304.6 MB, free: 11.64 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00275/0.3249, allocations: 1.093 MB / 305.7 MB, free: 10.8 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001455/0.3251, allocations: 6 kB / 305.7 MB, free: 10.8 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003152/0.3255, allocations: 13.14 kB / 305.7 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001567/0.3256, allocations: 38.22 kB / 305.8 MB, free: 10.76 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009239/0.3266, allocations: 193.7 kB / 306 MB, free: 10.62 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002115/0.3268, allocations: 66.77 kB / 306 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.135e-05/0.3269, allocations: 11.36 kB / 306 MB, free: 10.56 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001951/0.3271, allocations: 57.12 kB / 306.1 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002052/0.3273, allocations: 80.36 kB / 306.2 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008104/0.3282, allocations: 284.9 kB / 306.5 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.3283, allocations: 18.5 kB / 306.5 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.3284, allocations: 51.61 kB / 306.5 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.272e-05/0.3285, allocations: 7.125 kB / 306.5 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006235/0.3291, allocations: 243.9 kB / 306.8 MB, free: 10.17 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.3292, allocations: 0 / 306.8 MB, free: 10.17 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.527e-06/0.3292, allocations: 1.219 kB / 306.8 MB, free: 10.17 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.3292, allocations: 0 / 306.8 MB, free: 10.17 MB / 250.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.001103/0.3303, allocations: 468.7 kB / 307.2 MB, free: 9.703 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.3304, allocations: 12.03 kB / 307.2 MB, free: 9.691 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003177/0.3307, allocations: 27.8 kB / 307.3 MB, free: 9.664 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000968/0.3317, allocations: 303.4 kB / 307.6 MB, free: 9.324 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.701e-05/0.3318, allocations: 0 / 307.6 MB, free: 9.324 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.987e-05/0.3318, allocations: 12 kB / 307.6 MB, free: 9.312 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.3322, allocations: 101.6 kB / 307.7 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.3322, allocations: 0 / 307.7 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/0.3322, allocations: 8 kB / 307.7 MB, free: 9.199 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.3322, allocations: 0 / 307.7 MB, free: 9.199 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003232/0.3326, allocations: 79.94 kB / 307.8 MB, free: 9.121 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.3339, allocations: 468.4 kB / 308.2 MB, free: 8.613 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004319/0.3344, allocations: 118.5 kB / 308.3 MB, free: 8.488 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.3344, allocations: 4 kB / 308.3 MB, free: 8.484 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003392/0.3348, allocations: 123.4 kB / 308.5 MB, free: 8.352 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 3.055e-06/0.3348, allocations: 0 / 308.5 MB, free: 8.352 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008436/0.3356, allocations: 314.5 kB / 308.8 MB, free: 8.02 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.3357, allocations: 63.53 kB / 308.8 MB, free: 7.945 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008539/0.3366, allocations: 262.6 kB / 309.1 MB, free: 7.68 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.605e-05/0.3367, allocations: 41.69 kB / 309.1 MB, free: 7.633 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.3368, allocations: 178.5 kB / 309.3 MB, free: 7.457 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.045e-05/0.3369, allocations: 35.59 kB / 309.3 MB, free: 7.422 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.821e-05/0.3369, allocations: 4 kB / 309.3 MB, free: 7.418 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.3371, allocations: 322.8 kB / 309.7 MB, free: 7.094 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002812/0.3374, allocations: 87.95 kB / 309.7 MB, free: 7.008 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000296/0.3377, allocations: 105.8 kB / 309.8 MB, free: 6.898 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003219/0.338, allocations: 100.2 kB / 309.9 MB, free: 6.801 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.338, allocations: 0 / 309.9 MB, free: 6.801 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007327/0.3388, allocations: 250.5 kB / 310.2 MB, free: 6.551 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.3388, allocations: 7.938 kB / 310.2 MB, free: 6.543 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.3388, allocations: 0 / 310.2 MB, free: 6.543 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.3389, allocations: 4 kB / 310.2 MB, free: 6.539 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003255/0.3392, allocations: 35.97 kB / 310.2 MB, free: 6.504 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.3392, allocations: 4 kB / 310.2 MB, free: 6.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006143/0.3398, allocations: 47.78 kB / 310.3 MB, free: 6.453 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.656e-05/0.3399, allocations: 15.95 kB / 310.3 MB, free: 6.438 MB / 250.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: 17 ($whenCondition1,$PRE.whiteNoise.state[1],whiteNoise.state[1],$PRE.whiteNoise.state[2],whiteNoise.state[2],$PRE.whiteNoise.state[3],whiteNoise.state[3],$PRE.whiteNoise.state[4],whiteNoise.state[4],$PRE.whiteNoise.r,whiteNoise.r,$PRE.whiteNoise.r_raw,whiteNoise.r_raw,whiteNoise.localSeed,whiteNoise.actualGlobalSeed,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * Array equations: 1 * 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 0.0002042/0.3401, allocations: 141.8 kB / 310.4 MB, free: 6.289 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.082e-05/0.3402, allocations: 19.72 kB / 310.5 MB, free: 6.27 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.208e-05/0.3402, allocations: 21.53 kB / 310.5 MB, free: 6.246 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.3403, allocations: 0 / 310.5 MB, free: 6.246 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.3403, allocations: 3.984 kB / 310.5 MB, free: 6.242 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.3403, allocations: 4 kB / 310.5 MB, free: 6.238 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003518/0.3407, allocations: 241.5 kB / 310.7 MB, free: 5.953 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.3407, allocations: 11.92 kB / 310.7 MB, free: 5.941 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002227/0.3409, allocations: 16 kB / 310.7 MB, free: 5.926 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.3409, allocations: 3.938 kB / 310.8 MB, free: 5.922 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.65e-05/0.341, allocations: 7.984 kB / 310.8 MB, free: 5.914 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.341, allocations: 0 / 310.8 MB, free: 5.914 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.341, allocations: 4 kB / 310.8 MB, free: 5.91 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008063/0.3418, allocations: 276.8 kB / 311 MB, free: 5.621 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001744/0.342, allocations: 108.8 kB / 311.1 MB, free: 5.496 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.742e-05/0.3421, allocations: 4 kB / 311.1 MB, free: 5.492 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003219/0.3424, allocations: 23.97 kB / 311.2 MB, free: 5.469 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.417e-05/0.3425, allocations: 7.984 kB / 311.2 MB, free: 5.461 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.3425, allocations: 3.938 kB / 311.2 MB, free: 5.457 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000556/0.3431, allocations: 188.2 kB / 311.4 MB, free: 5.273 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3431, allocations: 0 / 311.4 MB, free: 5.273 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005909/0.3437, allocations: 91.98 kB / 311.5 MB, free: 5.184 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Hw.x_scaled[1],Hw.x_scaled[2]) * Number of discrete variables: 7 ($whenCondition1,whiteNoise.state[1],whiteNoise.state[2],whiteNoise.state[3],whiteNoise.state[4],whiteNoise.r,whiteNoise.r_raw) * Number of discrete states: 4 (whiteNoise.state[1],whiteNoise.state[2],whiteNoise.state[3],whiteNoise.state[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009792/0.3447, allocations: 283.1 kB / 311.7 MB, free: 4.922 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006676/0.3454, allocations: 176.2 kB / 311.9 MB, free: 4.75 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3454, allocations: 4.062 kB / 311.9 MB, free: 4.746 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002298/0.3456, allocations: 71.89 kB / 312 MB, free: 4.676 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.346, allocations: 19.81 kB / 312 MB, free: 4.656 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.347, allocations: 430.2 kB / 312.4 MB, free: 4.207 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.3475, allocations: 0.7322 MB / 313.1 MB, free: 3.445 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.3476, allocations: 19.42 kB / 313.2 MB, free: 3.426 MB / 250.7 MB Notification: Performance of SimCode: time 1.152e-06/0.3476, allocations: 0 / 313.2 MB, free: 3.426 MB / 250.7 MB Notification: Performance of Templates: time 0.01042/0.358, allocations: 3.667 MB / 316.8 MB, free: 15.75 MB / 266.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence.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 -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulenceCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulenceCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulenceCalcHelperMain.cpp:30: ./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulenceInitialize.cpp:231:6: error: use of undeclared identifier '$PRE_P_whiteNoise_P_state_'; did you mean '_whiteNoise_P_state_'? $PRE_P_whiteNoise_P_state_.assign(tmp7); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _whiteNoise_P_state_ ./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence.h:207:34: note: '_whiteNoise_P_state_' declared here StatArrayDim1 _whiteNoise_P_state_; ^ In file included from OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulenceCalcHelperMain.cpp:36: ./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence.cpp:193:90: error: no matching member function for call to 'pre' _functions->Modelica_Math_Random_Generators_Xorshift128plus_random(_discrete_events->pre(_whiteNoise_P_state_), tmp17); ~~~~~~~~~~~~~~~~~~^~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:29:11: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const double' for 1st argument double& pre(const double& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:30:8: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const int' for 1st argument int& pre(const int& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:31:9: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const bool' for 1st argument bool& pre(const bool& var); ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/System/DiscreteEvents.h:32:23: note: candidate function not viable: no known conversion from 'StatArrayDim1' to 'const std::string' (aka 'const basic_string') for 1st argument std::string & pre(const std::string & var); ^ 2 errors generated. : recipe for target 'OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulenceCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulenceCalcHelperMain.o] Error 1