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.176/2.176, allocations: 234.9 MB / 250.5 MB, free: 9.449 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004368/0.0004369, allocations: 12 kB / 314.4 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2748, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1219/0.3967, allocations: 82.15 MB / 451.4 MB, free: 8.441 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.397, allocations: 63.97 kB / 451.5 MB, free: 8.379 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.915/2.312, allocations: 81.85 MB / 0.5208 GB, free: 47.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.73e-06/2.312, allocations: 0 / 0.5208 GB, free: 47.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.32e-06/2.312, allocations: 4 kB / 0.5208 GB, free: 47.09 MB / 394.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.004276/2.316, allocations: 441.6 kB / 0.5213 GB, free: 46.64 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/2.316, allocations: 8.031 kB / 0.5213 GB, free: 46.63 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.272e-05/2.316, allocations: 0 / 0.5213 GB, free: 46.63 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.123e-05/2.316, allocations: 163.1 kB / 0.5214 GB, free: 46.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/2.316, allocations: 2.672 kB / 0.5214 GB, free: 46.43 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.237e-05/2.316, allocations: 4 kB / 0.5214 GB, free: 46.43 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.173e-05/2.316, allocations: 25.7 kB / 0.5214 GB, free: 46.4 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.882e-06/2.316, allocations: 7.547 kB / 0.5215 GB, free: 46.39 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.515e-06/2.316, allocations: 3.953 kB / 0.5215 GB, free: 46.39 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.936e-06/2.316, allocations: 4 kB / 0.5215 GB, free: 46.39 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.9e-05/2.316, allocations: 7.922 kB / 0.5215 GB, free: 46.38 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.27e-05/2.317, allocations: 149.7 kB / 0.5216 GB, free: 46.18 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.795e-05/2.317, allocations: 18.61 kB / 0.5216 GB, free: 46.16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.021e-06/2.317, allocations: 0 / 0.5216 GB, free: 46.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/2.317, allocations: 60.25 kB / 0.5217 GB, free: 46.08 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.646e-06/2.317, allocations: 0 / 0.5217 GB, free: 46.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001454/2.317, allocations: 71.39 kB / 0.5218 GB, free: 46 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/2.317, allocations: 81.06 kB / 0.5218 GB, free: 45.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.105e-05/2.317, allocations: 93.03 kB / 0.5219 GB, free: 45.8 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.53e-06/2.317, allocations: 25.7 kB / 0.5219 GB, free: 45.77 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.064e-05/2.317, allocations: 154.6 kB / 0.5221 GB, free: 45.62 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.489e-05/2.317, allocations: 0 / 0.5221 GB, free: 45.62 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.517e-06/2.317, allocations: 0 / 0.5221 GB, free: 45.62 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.687e-05/2.317, allocations: 310.8 kB / 0.5224 GB, free: 45.31 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.526e-06/2.317, allocations: 0 / 0.5224 GB, free: 45.31 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.726e-06/2.317, allocations: 4 kB / 0.5224 GB, free: 45.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.53e-05/2.317, allocations: 41.08 kB / 0.5224 GB, free: 45.26 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.088e-06/2.317, allocations: 0 / 0.5224 GB, free: 45.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.925e-05/2.317, allocations: 63.34 kB / 0.5225 GB, free: 45.19 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/2.317, allocations: 29.7 kB / 0.5225 GB, free: 45.15 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.354e-06/2.317, allocations: 0 / 0.5225 GB, free: 45.15 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/2.317, allocations: 0 / 0.5225 GB, free: 45.15 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.497e-06/2.317, allocations: 0 / 0.5225 GB, free: 45.15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/2.317, allocations: 7.984 kB / 0.5225 GB, free: 45.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.07e-05/2.317, allocations: 7.938 kB / 0.5225 GB, free: 45.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-06/2.317, allocations: 0 / 0.5225 GB, free: 45.14 MB / 394.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 () * Number of clocked 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 5.808e-05/2.317, allocations: 139.6 kB / 0.5227 GB, free: 44.98 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.061e-05/2.317, allocations: 0.875 kB / 0.5227 GB, free: 44.98 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.082e-05/2.317, allocations: 3.125 kB / 0.5227 GB, free: 44.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.629e-06/2.317, allocations: 0 / 0.5227 GB, free: 44.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.856e-06/2.317, allocations: 3.391 kB / 0.5227 GB, free: 44.98 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.562e-06/2.317, allocations: 0 / 0.5227 GB, free: 44.98 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.833e-05/2.318, allocations: 157.6 kB / 0.5228 GB, free: 44.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/2.318, allocations: 0 / 0.5228 GB, free: 44.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.771e-06/2.318, allocations: 1.625 kB / 0.5228 GB, free: 44.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.188e-06/2.318, allocations: 0 / 0.5228 GB, free: 44.78 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/2.318, allocations: 7.516 kB / 0.5228 GB, free: 44.78 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.685e-06/2.318, allocations: 0 / 0.5228 GB, free: 44.78 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.347e-06/2.318, allocations: 0 / 0.5228 GB, free: 44.78 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.736e-05/2.318, allocations: 102.7 kB / 0.5229 GB, free: 44.65 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.531e-05/2.318, allocations: 77.11 kB / 0.523 GB, free: 44.56 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/2.318, allocations: 0 / 0.523 GB, free: 44.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.196e-05/2.318, allocations: 4 kB / 0.523 GB, free: 44.55 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.149e-05/2.318, allocations: 4.031 kB / 0.523 GB, free: 44.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.329e-06/2.318, allocations: 0 / 0.523 GB, free: 44.55 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.392e-05/2.318, allocations: 75.28 kB / 0.5231 GB, free: 44.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.01e-07/2.318, allocations: 0 / 0.5231 GB, free: 44.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.009302/2.327, allocations: 2.159 MB / 0.5252 GB, free: 42.33 MB / 394.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) * Number of clocked states: 0 () * 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.01525/2.342, allocations: 2.264 MB / 0.5274 GB, free: 40.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001098/2.343, allocations: 55.41 kB / 0.5275 GB, free: 40.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.001e-06/2.343, allocations: 0 / 0.5275 GB, free: 40.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.335e-05/2.343, allocations: 55.41 kB / 0.5275 GB, free: 39.97 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001075/2.343, allocations: 9.203 kB / 0.5275 GB, free: 39.96 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001517/2.343, allocations: 114.3 kB / 0.5276 GB, free: 39.82 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001002/2.343, allocations: 0.6772 MB / 0.5283 GB, free: 39.12 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.035e-05/2.343, allocations: 7.438 kB / 0.5283 GB, free: 39.11 MB / 394.7 MB Notification: Performance of SimCode: time 1.341e-06/2.343, allocations: 0 / 0.5283 GB, free: 39.11 MB / 394.7 MB Notification: Performance of Templates: time 0.4693/2.812, allocations: 119.2 MB / 0.6447 GB, free: 169 MB / 474.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:39: error: use of undeclared identifier \'_omcQ_24tmpVar2_\'; did you mean \'_omcQ_24tmpVar3_\'?\n _omcQ_24tmpVar3_ = std::abs(_omcQ_24tmpVar2_);\n ^~~~~~~~~~~~~~~~\n _omcQ_24tmpVar3_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:11962:14: note: \'_omcQ_24tmpVar3_\' declared here\n double _omcQ_24tmpVar3_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:13044:58: error: use of undeclared identifier \'_omcQ_24tmpVar5_\'; did you mean \'_omcQ_24tmpVar6_\'?\n Modelica_Math_Distributions_Uniform_cumulative(_omcQ_24tmpVar5_, -1.0, 2.0,tmp3068);\n ^~~~~~~~~~~~~~~~\n _omcQ_24tmpVar6_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:13021:14: note: \'_omcQ_24tmpVar6_\' declared here\n double _omcQ_24tmpVar6_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:15118:39: error: use of undeclared identifier \'_omcQ_24tmpVar8_\'; did you mean \'_omcQ_24tmpVar9_\'?\n _omcQ_24tmpVar9_ = std::abs(_omcQ_24tmpVar8_);\n ^~~~~~~~~~~~~~~~\n _omcQ_24tmpVar9_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:15093:14: note: \'_omcQ_24tmpVar9_\' declared here\n double _omcQ_24tmpVar9_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:16175:57: error: use of undeclared identifier \'_omcQ_24tmpVar11_\'; did you mean \'_omcQ_24tmpVar12_\'?\n Modelica_Math_Distributions_Normal_cumulative(_omcQ_24tmpVar11_, 1.0, 0.5,tmp6090);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar12_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:16152:14: note: \'_omcQ_24tmpVar12_\' declared here\n double _omcQ_24tmpVar12_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:18249:40: error: use of undeclared identifier \'_omcQ_24tmpVar14_\'; did you mean \'_omcQ_24tmpVar15_\'?\n _omcQ_24tmpVar15_ = std::abs(_omcQ_24tmpVar14_);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar15_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:18224:14: note: \'_omcQ_24tmpVar15_\' declared here\n double _omcQ_24tmpVar15_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:19306:58: error: use of undeclared identifier \'_omcQ_24tmpVar17_\'; did you mean \'_omcQ_24tmpVar18_\'?\n Modelica_Math_Distributions_Weibull_cumulative(_omcQ_24tmpVar17_, 0.5, 2.0,tmp9112);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar18_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestDistributionsFunctions.cpp:19283:14: note: \'_omcQ_24tmpVar18_\' declared here\n double _omcQ_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'