Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributions.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadModel(ModelicaTest): time 2.312/2.312, allocations: 235 MB / 248.1 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.885e-05/2.9e-05, allocations: 4 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3168, allocations: 54.85 MB / 364.5 MB, free: 5.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1229/0.4397, allocations: 82.06 MB / 446.6 MB, free: 14.42 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/0.44, allocations: 64.53 kB / 446.7 MB, free: 14.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.631/2.07, allocations: 81.82 MB / 0.5161 GB, free: 12.46 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.911e-06/2.071, allocations: 0 / 0.5161 GB, free: 12.46 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.373e-06/2.071, allocations: 0 / 0.5161 GB, free: 12.46 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.003684/2.074, allocations: 447.9 kB / 0.5165 GB, free: 11.97 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/2.074, allocations: 8.031 kB / 0.5165 GB, free: 11.96 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.008e-05/2.074, allocations: 0.8438 kB / 0.5165 GB, free: 11.96 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/2.074, allocations: 159.1 kB / 0.5167 GB, free: 11.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/2.074, allocations: 0 / 0.5167 GB, free: 11.77 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/2.075, allocations: 4 kB / 0.5167 GB, free: 11.76 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.578e-05/2.075, allocations: 29.64 kB / 0.5167 GB, free: 11.73 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.884e-06/2.075, allocations: 3.953 kB / 0.5167 GB, free: 11.72 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.431e-06/2.075, allocations: 0 / 0.5167 GB, free: 11.72 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.137e-06/2.075, allocations: 7.984 kB / 0.5167 GB, free: 11.71 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.714e-05/2.075, allocations: 4.688 kB / 0.5167 GB, free: 11.71 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000153/2.075, allocations: 146.3 kB / 0.5169 GB, free: 11.52 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.448e-05/2.075, allocations: 22.55 kB / 0.5169 GB, free: 11.49 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.956e-05/2.075, allocations: 4.859 kB / 0.5169 GB, free: 11.48 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.639e-06/2.075, allocations: 0 / 0.5169 GB, free: 11.48 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.151e-05/2.075, allocations: 60.33 kB / 0.5169 GB, free: 11.41 MB / 458.7 MB Notification: Performance of pre-optimization done (n=1): time 1.933e-06/2.075, allocations: 4 kB / 0.517 GB, free: 11.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001666/2.075, allocations: 67.34 kB / 0.517 GB, free: 11.32 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/2.075, allocations: 78.86 kB / 0.5171 GB, free: 11.23 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.704e-05/2.075, allocations: 92.94 kB / 0.5172 GB, free: 11.13 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/2.075, allocations: 25.7 kB / 0.5172 GB, free: 11.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.153e-05/2.075, allocations: 154.5 kB / 0.5174 GB, free: 10.95 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/2.075, allocations: 0 / 0.5174 GB, free: 10.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.663e-06/2.076, allocations: 0 / 0.5174 GB, free: 10.95 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/2.076, allocations: 310.8 kB / 0.5176 GB, free: 10.64 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.046e-05/2.076, allocations: 4.031 kB / 0.5177 GB, free: 10.63 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.364e-06/2.076, allocations: 4 kB / 0.5177 GB, free: 10.63 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.361e-05/2.076, allocations: 29.7 kB / 0.5177 GB, free: 10.59 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/2.076, allocations: 0 / 0.5177 GB, free: 10.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001019/2.076, allocations: 64.89 kB / 0.5177 GB, free: 10.52 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.542e-05/2.076, allocations: 31.58 kB / 0.5178 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.451e-06/2.076, allocations: 4 kB / 0.5178 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/2.076, allocations: 4 kB / 0.5178 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.707e-06/2.076, allocations: 4.094 kB / 0.5178 GB, free: 10.47 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.542e-06/2.076, allocations: 3.953 kB / 0.5178 GB, free: 10.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.676e-05/2.076, allocations: 0 / 0.5178 GB, free: 10.47 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/2.076, allocations: 0 / 0.5178 GB, free: 10.47 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001048/2.076, allocations: 138.6 kB / 0.5179 GB, free: 10.32 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.02e-05/2.076, allocations: 0 / 0.5179 GB, free: 10.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.593e-05/2.076, allocations: 7.078 kB / 0.5179 GB, free: 10.31 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.048e-06/2.076, allocations: 0 / 0.5179 GB, free: 10.31 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.019e-06/2.076, allocations: 0 / 0.5179 GB, free: 10.31 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/2.076, allocations: 7.891 kB / 0.5179 GB, free: 10.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001216/2.076, allocations: 157.7 kB / 0.5181 GB, free: 10.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.747e-06/2.076, allocations: 0 / 0.5181 GB, free: 10.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.464e-06/2.076, allocations: 3.938 kB / 0.5181 GB, free: 10.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.521e-06/2.076, allocations: 3.984 kB / 0.5181 GB, free: 10.09 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.509e-06/2.076, allocations: 0 / 0.5181 GB, free: 10.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.398e-06/2.076, allocations: 1.172 kB / 0.5181 GB, free: 10.09 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.746e-06/2.076, allocations: 4 kB / 0.5181 GB, free: 10.09 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001269/2.077, allocations: 94.78 kB / 0.5182 GB, free: 9.973 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.674e-05/2.077, allocations: 77.11 kB / 0.5183 GB, free: 9.879 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/2.077, allocations: 4 kB / 0.5183 GB, free: 9.875 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.235e-05/2.077, allocations: 0 / 0.5183 GB, free: 9.875 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.388e-05/2.077, allocations: 0 / 0.5183 GB, free: 9.875 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.377e-06/2.077, allocations: 0 / 0.5183 GB, free: 9.875 MB / 458.7 MB Notification: Performance of sorting global known variables: time 3.908e-05/2.077, allocations: 82.44 kB / 0.5183 GB, free: 9.797 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.56e-07/2.077, allocations: 0 / 0.5183 GB, free: 9.797 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00989/2.087, allocations: 2.156 MB / 0.5205 GB, free: 7.641 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.01527/2.102, allocations: 2.259 MB / 0.5227 GB, free: 5.375 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001249/2.102, allocations: 59.41 kB / 0.5227 GB, free: 5.305 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/2.102, allocations: 0 / 0.5227 GB, free: 5.305 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 5.51e-05/2.102, allocations: 59.34 kB / 0.5228 GB, free: 5.234 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001019/2.102, allocations: 8.078 kB / 0.5228 GB, free: 5.227 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001677/2.103, allocations: 70.7 kB / 0.5228 GB, free: 5.129 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/2.103, allocations: 0.677 MB / 0.5235 GB, free: 4.426 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.72e-05/2.103, allocations: 7.438 kB / 0.5235 GB, free: 4.418 MB / 458.7 MB Notification: Performance of SimCode: time 1.51e-06/2.103, allocations: 4 kB / 0.5235 GB, free: 4.414 MB / 458.7 MB Notification: Performance of Templates: time 0.4364/2.539, allocations: 118.1 MB / 0.6389 GB, free: 51.09 MB / 458.7 MB make -j1 -f ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributions.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=2 -DSUNDIALS_MINOR_VERSION=6 -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 OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsCalcHelperMain.o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsCalcHelperMain.cpp\nIn file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsCalcHelperMain.cpp:28:\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:11987:35: error: use of undeclared identifier \'D_24tmpVar2_\'; did you mean \'D_24tmpVar3_\'?\n D_24tmpVar3_ = std::abs(D_24tmpVar2_);\n ^~~~~~~~~~~~\n D_24tmpVar3_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:11962:14: note: \'D_24tmpVar3_\' declared here\n double D_24tmpVar3_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:13044:58: error: use of undeclared identifier \'D_24tmpVar5_\'; did you mean \'D_24tmpVar6_\'?\n Modelica_Math_Distributions_Uniform_cumulative(D_24tmpVar5_, -1.0, 2.0,tmp3068);\n ^~~~~~~~~~~~\n D_24tmpVar6_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:13021:14: note: \'D_24tmpVar6_\' declared here\n double D_24tmpVar6_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:15118:35: error: use of undeclared identifier \'D_24tmpVar8_\'; did you mean \'D_24tmpVar9_\'?\n D_24tmpVar9_ = std::abs(D_24tmpVar8_);\n ^~~~~~~~~~~~\n D_24tmpVar9_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:15093:14: note: \'D_24tmpVar9_\' declared here\n double D_24tmpVar9_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:16175:57: error: use of undeclared identifier \'D_24tmpVar11_\'; did you mean \'D_24tmpVar12_\'?\n Modelica_Math_Distributions_Normal_cumulative(D_24tmpVar11_, 1.0, 0.5,tmp6090);\n ^~~~~~~~~~~~~\n D_24tmpVar12_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:16152:14: note: \'D_24tmpVar12_\' declared here\n double D_24tmpVar12_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:18249:36: error: use of undeclared identifier \'D_24tmpVar14_\'; did you mean \'D_24tmpVar15_\'?\n D_24tmpVar15_ = std::abs(D_24tmpVar14_);\n ^~~~~~~~~~~~~\n D_24tmpVar15_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:18224:14: note: \'D_24tmpVar15_\' declared here\n double D_24tmpVar15_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:19306:58: error: use of undeclared identifier \'D_24tmpVar17_\'; did you mean \'D_24tmpVar18_\'?\n Modelica_Math_Distributions_Weibull_cumulative(D_24tmpVar17_, 0.5, 2.0,tmp9112);\n ^~~~~~~~~~~~~\n D_24tmpVar18_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:19283:14: note: \'D_24tmpVar18_\' declared here\n double D_24tmpVar18_;\n ^\n6 errors generated.\n: recipe for target \'OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsCalcHelperMain.o\' failed\nmake: *** [OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsCalcHelperMain.o] Error 1\n'