Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) 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 1.855/1.855, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003621/0.0003626, allocations: 12 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08157/0.08196, allocations: 44.51 MB / 308.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence): time 0.002199/0.08419, allocations: 1.332 MB / 309.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002625/0.08686, allocations: 1.147 MB / 310.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.08702, allocations: 0 / 310.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003234/0.08736, allocations: 31.78 kB / 310.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001478/0.08753, allocations: 35.88 kB / 310.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008639/0.08841, allocations: 227.4 kB / 311.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002109/0.08865, allocations: 103.8 kB / 311.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.08877, allocations: 17.11 kB / 311.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002008/0.08898, allocations: 75.73 kB / 311.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001909/0.08919, allocations: 91.64 kB / 311.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.417e-05/0.08925, allocations: 12 kB / 311.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006588/0.08992, allocations: 291.5 kB / 311.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.32e-05/0.09003, allocations: 39.89 kB / 311.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.644e-05/0.09011, allocations: 45.64 kB / 311.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004766/0.0906, allocations: 239.5 kB / 312 MB, free: 13.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.148e-06/0.09062, allocations: 7.938 kB / 312 MB, free: 13.33 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.925e-06/0.09064, allocations: 0 / 312 MB, free: 13.33 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.647e-06/0.09065, allocations: 0 / 312 MB, free: 13.33 MB / 266.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.001392/0.09206, allocations: 0.5339 MB / 312.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.09211, allocations: 12.03 kB / 312.6 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002528/0.09238, allocations: 31.7 kB / 312.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005803/0.09298, allocations: 263.8 kB / 312.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.417e-05/0.09302, allocations: 0 / 312.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.031e-05/0.09308, allocations: 15.98 kB / 312.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003004/0.09339, allocations: 105.6 kB / 313 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.09342, allocations: 3.938 kB / 313 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.09345, allocations: 7.938 kB / 313 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.09347, allocations: 3.984 kB / 313 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002955/0.09378, allocations: 79.94 kB / 313.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.0949, allocations: 460.5 kB / 313.5 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003691/0.09529, allocations: 122.5 kB / 313.6 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.09533, allocations: 4 kB / 313.6 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000299/0.09564, allocations: 119.3 kB / 313.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 3.549e-06/0.09566, allocations: 0 / 313.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.000755/0.09642, allocations: 319 kB / 314.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.631e-05/0.09651, allocations: 63.39 kB / 314.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005661/0.09709, allocations: 255.6 kB / 314.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.174e-05/0.09716, allocations: 33.7 kB / 314.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.0973, allocations: 174.5 kB / 314.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.38e-05/0.0974, allocations: 43.59 kB / 314.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.635e-05/0.09743, allocations: 3.984 kB / 314.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.09761, allocations: 322.8 kB / 314.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002422/0.09786, allocations: 87.94 kB / 315 MB, free: 10.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002584/0.09814, allocations: 109.8 kB / 315.1 MB, free: 9.973 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.09841, allocations: 100.2 kB / 315.2 MB, free: 9.875 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.09843, allocations: 0 / 315.2 MB, free: 9.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006383/0.09908, allocations: 250.4 kB / 315.5 MB, free: 9.625 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.09912, allocations: 11.97 kB / 315.5 MB, free: 9.613 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.754e-06/0.09914, allocations: 0 / 315.5 MB, free: 9.613 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.09916, allocations: 0 / 315.5 MB, free: 9.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/0.09941, allocations: 31.92 kB / 315.5 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.09944, allocations: 8.078 kB / 315.5 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002643/0.09971, allocations: 35.72 kB / 315.6 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.75e-05/0.09976, allocations: 4 kB / 315.6 MB, free: 9.535 MB / 266.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 () * Number of clocked 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.0001979/0.09997, allocations: 145.6 kB / 315.7 MB, free: 9.383 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.844e-05/0.1, allocations: 19.8 kB / 315.7 MB, free: 9.363 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.732e-05/0.1001, allocations: 17.53 kB / 315.7 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.205e-06/0.1001, allocations: 3.938 kB / 315.8 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.123e-06/0.1001, allocations: 0 / 315.8 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.655e-06/0.1001, allocations: 0 / 315.8 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003495/0.1005, allocations: 249.3 kB / 316 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.071e-06/0.1005, allocations: 0 / 316 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000176/0.1007, allocations: 23.98 kB / 316 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.492e-06/0.1007, allocations: 4 kB / 316 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.1008, allocations: 0 / 316 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.88e-06/0.1008, allocations: 0 / 316 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.241e-06/0.1008, allocations: 0 / 316 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007255/0.1015, allocations: 288.7 kB / 316.3 MB, free: 8.727 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001398/0.1017, allocations: 104.9 kB / 316.4 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.987e-05/0.1017, allocations: 16.05 kB / 316.4 MB, free: 8.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.102, allocations: 19.97 kB / 316.4 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.421e-05/0.102, allocations: 4 kB / 316.4 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.1021, allocations: 3.984 kB / 316.5 MB, free: 8.562 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004201/0.1025, allocations: 188.2 kB / 316.6 MB, free: 8.379 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.18e-07/0.1025, allocations: 0 / 316.6 MB, free: 8.379 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005137/0.103, allocations: 91.89 kB / 316.7 MB, free: 8.289 MB / 266.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]) * Number of clocked states: 0 () * 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.0008798/0.1039, allocations: 296.8 kB / 317 MB, free: 8.023 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005475/0.1045, allocations: 176.2 kB / 317.2 MB, free: 7.852 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.237e-06/0.1045, allocations: 0 / 317.2 MB, free: 7.852 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002266/0.1048, allocations: 76 kB / 317.3 MB, free: 7.777 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002601/0.1051, allocations: 23.8 kB / 317.3 MB, free: 7.754 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/0.1065, allocations: 422.3 kB / 317.7 MB, free: 7.309 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006065/0.1071, allocations: 0.7321 MB / 318.4 MB, free: 6.551 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001663/0.1073, allocations: 23.42 kB / 318.5 MB, free: 6.527 MB / 266.7 MB Notification: Performance of SimCode: time 2.584e-06/0.1073, allocations: 4 kB / 318.5 MB, free: 6.523 MB / 266.7 MB Notification: Performance of Templates: time 0.01386/0.1212, allocations: 3.657 MB / 322.1 MB, free: 2.859 MB / 266.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence.makefile b'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=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulenceCalcHelperMain.cpp:29:\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulenceInitialize.cpp:226:3: error: use of undeclared identifier \'$PRE_P_whiteNoise_P_state_\'; did you mean \'_whiteNoise_P_state_\'?\n $PRE_P_whiteNoise_P_state_.assign(tmp53);\n ^~~~~~~~~~~~~~~~~~~~~~~~~~\n _whiteNoise_P_state_\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence.h:199:33: note: \'_whiteNoise_P_state_\' declared here\n StatArrayDim1 _whiteNoise_P_state_;\n ^\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulenceCalcHelperMain.cpp:33:\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulence.cpp:195:90: error: no matching member function for call to \'pre\'\n _functions->Modelica_Math_Random_Generators_Xorshift128plus_random(_discrete_events->pre(_whiteNoise_P_state_), tmp0);\n ~~~~~~~~~~~~~~~~~~^~~\n/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/System/DiscreteEvents.h:29:11: note: candidate function not viable: no known conversion from \'StatArrayDim1\' to \'const double\' for 1st argument\n double& pre(const double& var);\n ^\n/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/System/DiscreteEvents.h:30:8: note: candidate function not viable: no known conversion from \'StatArrayDim1\' to \'const int\' for 1st argument\n int& pre(const int& var);\n ^\n/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/System/DiscreteEvents.h:31:9: note: candidate function not viable: no known conversion from \'StatArrayDim1\' to \'const bool\' for 1st argument\n bool& pre(const bool& var);\n ^\n/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/System/DiscreteEvents.h:32:16: note: candidate function not viable: no known conversion from \'StatArrayDim1\' to \'const std::string\' (aka \'const basic_string\') for 1st argument\n std::string& pre(const std::string& var);\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulenceCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.DrydenContinuousTurbulenceCalcHelperMain.o] Error 1\n'