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.UniformNoiseProperties.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.UniformNoiseProperties,tolerance=1e-09,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mean.mu|standardDeviation.variance.mu|standardDeviation.variance.var|variance.mu|variance.var|meanError_y|sigmaError_y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoiseProperties") Notification: Performance of loadModel(Modelica): time 1.86/1.86, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003637/0.0003639, allocations: 12 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08064/0.08103, allocations: 44.51 MB / 308.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.NoiseExamples.UniformNoiseProperties): time 0.002339/0.08342, allocations: 1.488 MB / 309.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001523/0.085, allocations: 0.6553 MB / 310.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.08512, allocations: 3.938 kB / 310.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.395e-05/0.08523, allocations: 7.875 kB / 310.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001683/0.08541, allocations: 27.89 kB / 310.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005778/0.08601, allocations: 143.6 kB / 310.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.08624, allocations: 123.7 kB / 310.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.08641, allocations: 52.22 kB / 310.9 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.08653, allocations: 75.67 kB / 310.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.08671, allocations: 95.62 kB / 311 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.576e-05/0.08676, allocations: 8 kB / 311 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002642/0.08704, allocations: 103.8 kB / 311.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.799e-05/0.08712, allocations: 43.81 kB / 311.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.443e-05/0.08721, allocations: 57.64 kB / 311.2 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003625/0.08758, allocations: 203.5 kB / 311.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.813e-06/0.0876, allocations: 4 kB / 311.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.996e-06/0.08762, allocations: 0 / 311.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.347e-06/0.08763, allocations: 0 / 311.4 MB, free: 13.93 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001257/0.0889, allocations: 0.5469 MB / 312 MB, free: 13.33 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.08895, allocations: 12.03 kB / 312 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002617/0.08923, allocations: 35.7 kB / 312 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003496/0.08959, allocations: 239.5 kB / 312.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.82e-05/0.08966, allocations: 16.28 kB / 312.3 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.686e-05/0.08973, allocations: 23.91 kB / 312.3 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006401/0.09038, allocations: 214.6 kB / 312.5 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.09041, allocations: 3.938 kB / 312.5 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.782e-05/0.09045, allocations: 7.984 kB / 312.5 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.197e-06/0.09047, allocations: 7.984 kB / 312.5 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006545/0.09113, allocations: 184.1 kB / 312.7 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.09253, allocations: 0.5781 MB / 313.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.09399, allocations: 374.8 kB / 313.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.776e-05/0.09404, allocations: 8 kB / 313.7 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000535/0.09458, allocations: 183.7 kB / 313.8 MB, free: 11.35 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 3.383e-06/0.09461, allocations: 0 / 313.8 MB, free: 11.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.001519/0.09613, allocations: 495.8 kB / 314.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.737e-05/0.09622, allocations: 59.58 kB / 314.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003144/0.09655, allocations: 207.8 kB / 314.6 MB, free: 10.56 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.838e-05/0.09663, allocations: 41.64 kB / 314.6 MB, free: 10.51 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.09678, allocations: 191 kB / 314.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.953e-05/0.09688, allocations: 75.06 kB / 314.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.394e-05/0.09692, allocations: 4 kB / 314.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.09711, allocations: 330.8 kB / 315.2 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005009/0.09762, allocations: 147.9 kB / 315.4 MB, free: 9.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000528/0.09816, allocations: 177.6 kB / 315.5 MB, free: 9.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005086/0.09869, allocations: 162.5 kB / 315.7 MB, free: 9.434 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.792e-06/0.09871, allocations: 7.953 kB / 315.7 MB, free: 9.426 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00119/0.09991, allocations: 398.9 kB / 316.1 MB, free: 9.031 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.09995, allocations: 4 kB / 316.1 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.209e-06/0.09997, allocations: 4 kB / 316.1 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.1, allocations: 4 kB / 316.1 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004272/0.1004, allocations: 75.89 kB / 316.2 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.424e-05/0.1005, allocations: 7.984 kB / 316.2 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.1007, allocations: 51.67 kB / 316.2 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.552e-05/0.1008, allocations: 7.984 kB / 316.2 MB, free: 8.879 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.noise.state[1],noise.state[1],$PRE.noise.state[2],noise.state[2],$PRE.noise.state[3],noise.state[3],$PRE.noise.state[4],noise.state[4],$PRE.noise.r,noise.r,$PRE.noise.r_raw,noise.r_raw,globalSeed.id_impure,noise.localSeed,noise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0002192/0.101, allocations: 141.8 kB / 316.4 MB, free: 8.73 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.149e-05/0.1011, allocations: 19.77 kB / 316.4 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.04e-05/0.1012, allocations: 25.86 kB / 316.4 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.645e-06/0.1012, allocations: 4 kB / 316.4 MB, free: 8.68 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1012, allocations: 4 kB / 316.4 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.208e-06/0.1012, allocations: 0 / 316.4 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.1029, allocations: 0.6785 MB / 317.1 MB, free: 7.941 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.172e-06/0.1029, allocations: 3.938 kB / 317.1 MB, free: 7.938 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003636/0.1033, allocations: 51.95 kB / 317.2 MB, free: 7.887 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.641e-06/0.1033, allocations: 4 kB / 317.2 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.926e-05/0.1033, allocations: 7.938 kB / 317.2 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.438e-06/0.1034, allocations: 7.938 kB / 317.2 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.06e-06/0.1034, allocations: 4 kB / 317.2 MB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/0.1049, allocations: 0.5337 MB / 317.7 MB, free: 7.316 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.748e-05/0.105, allocations: 100.8 kB / 317.8 MB, free: 7.199 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.701e-05/0.1051, allocations: 8.062 kB / 317.8 MB, free: 7.191 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002636/0.1053, allocations: 31.97 kB / 317.9 MB, free: 7.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.902e-05/0.1054, allocations: 15.97 kB / 317.9 MB, free: 7.145 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.1055, allocations: 7.984 kB / 317.9 MB, free: 7.137 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002091/0.1057, allocations: 151.2 kB / 318 MB, free: 6.988 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.056e-06/0.1057, allocations: 0 / 318 MB, free: 6.988 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005037/0.1062, allocations: 67.91 kB / 318.1 MB, free: 6.922 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.mu,variance.mu,variance.var,standardDeviation.variance.mu,standardDeviation.variance.var) * Number of discrete variables: 7 ($whenCondition1,noise.state[1],noise.state[2],noise.state[3],noise.state[4],noise.r,noise.r_raw) * Number of discrete states: 4 (noise.state[1],noise.state[2],noise.state[3],noise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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.0006091/0.1068, allocations: 217.2 kB / 318.3 MB, free: 6.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.1079, allocations: 320.3 kB / 318.6 MB, free: 6.418 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.27e-06/0.108, allocations: 0 / 318.6 MB, free: 6.418 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004548/0.1084, allocations: 139.9 kB / 318.8 MB, free: 6.281 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.1088, allocations: 23.89 kB / 318.8 MB, free: 6.258 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.11, allocations: 0.5431 MB / 319.3 MB, free: 5.688 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004616/0.1105, allocations: 0.7437 MB / 320.1 MB, free: 4.914 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.1106, allocations: 27.42 kB / 320.1 MB, free: 4.887 MB / 266.7 MB Notification: Performance of SimCode: time 1.692e-06/0.1106, allocations: 4 kB / 320.1 MB, free: 4.883 MB / 266.7 MB Notification: Performance of Templates: time 0.008019/0.1187, allocations: 3.466 MB / 323.6 MB, free: 1.414 MB / 266.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoiseProperties.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.UniformNoisePropertiesCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoisePropertiesCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoisePropertiesCalcHelperMain.cpp:29:\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoisePropertiesInitialize.cpp:355:3: error: use of undeclared identifier \'$PRE_P_noise_P_state_\'; did you mean \'_noise_P_state_\'?\n $PRE_P_noise_P_state_.assign(tmp42);\n ^~~~~~~~~~~~~~~~~~~~~\n _noise_P_state_\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoiseProperties.h:214:33: note: \'_noise_P_state_\' declared here\n StatArrayDim1 _noise_P_state_;\n ^\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoisePropertiesCalcHelperMain.cpp:33:\n./OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoiseProperties.cpp:232:90: error: no matching member function for call to \'pre\'\n _functions->Modelica_Math_Random_Generators_Xorshift128plus_random(_discrete_events->pre(_noise_P_state_), tmp3);\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.UniformNoisePropertiesCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Blocks.Examples.NoiseExamples.UniformNoisePropertiesCalcHelperMain.o] Error 1\n'