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.TestTruncatedDistributions.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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadModel(ModelicaTest): time 2.293/2.293, allocations: 234.9 MB / 250.5 MB, free: 9.453 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004347/0.0004349, allocations: 16 kB / 314.4 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2716, allocations: 54.86 MB / 369.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1227/0.3944, allocations: 83.51 MB / 452.8 MB, free: 7.062 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/0.3947, allocations: 67.97 kB / 452.8 MB, free: 6.996 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.35/1.745, allocations: 71.87 MB / 0.5124 GB, free: 56.51 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.307e-06/1.745, allocations: 0 / 0.5124 GB, free: 56.51 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.343e-06/1.745, allocations: 0 / 0.5124 GB, free: 56.51 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.003065/1.748, allocations: 466.7 kB / 0.5129 GB, free: 56.04 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/1.748, allocations: 12.03 kB / 0.5129 GB, free: 56.02 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.06e-05/1.748, allocations: 0 / 0.5129 GB, free: 56.02 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.952e-05/1.748, allocations: 159.1 kB / 0.513 GB, free: 55.83 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/1.748, allocations: 0 / 0.513 GB, free: 55.83 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/1.748, allocations: 4 kB / 0.513 GB, free: 55.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.502e-05/1.748, allocations: 33.69 kB / 0.5131 GB, free: 55.79 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.446e-06/1.748, allocations: 3.938 kB / 0.5131 GB, free: 55.78 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.562e-06/1.748, allocations: 3.953 kB / 0.5131 GB, free: 55.78 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/1.748, allocations: 0 / 0.5131 GB, free: 55.78 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.791e-05/1.748, allocations: 11.22 kB / 0.5131 GB, free: 55.77 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.08e-05/1.748, allocations: 145.7 kB / 0.5132 GB, free: 55.58 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.262e-05/1.748, allocations: 14.58 kB / 0.5132 GB, free: 55.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.072e-06/1.748, allocations: 4.094 kB / 0.5132 GB, free: 55.55 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/1.748, allocations: 65.12 kB / 0.5133 GB, free: 55.47 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.945e-06/1.748, allocations: 0 / 0.5133 GB, free: 55.47 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001399/1.748, allocations: 63.34 kB / 0.5134 GB, free: 55.4 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/1.749, allocations: 85.19 kB / 0.5134 GB, free: 55.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.858e-05/1.749, allocations: 85 kB / 0.5135 GB, free: 55.21 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.58e-06/1.749, allocations: 25.7 kB / 0.5135 GB, free: 55.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.079e-05/1.749, allocations: 150.6 kB / 0.5137 GB, free: 55.03 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.5e-05/1.749, allocations: 4 kB / 0.5137 GB, free: 55.02 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.518e-06/1.749, allocations: 0 / 0.5137 GB, free: 55.02 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.727e-05/1.749, allocations: 318.8 kB / 0.514 GB, free: 54.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.509e-06/1.749, allocations: 0 / 0.514 GB, free: 54.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.382e-06/1.749, allocations: 0 / 0.514 GB, free: 54.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.579e-05/1.749, allocations: 33.77 kB / 0.514 GB, free: 54.66 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/1.749, allocations: 0 / 0.514 GB, free: 54.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.927e-05/1.749, allocations: 63.34 kB / 0.5141 GB, free: 54.59 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/1.749, allocations: 29.7 kB / 0.5141 GB, free: 54.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.237e-06/1.749, allocations: 0 / 0.5141 GB, free: 54.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/1.749, allocations: 7.266 kB / 0.5141 GB, free: 54.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.525e-06/1.749, allocations: 0 / 0.5141 GB, free: 54.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.309e-06/1.749, allocations: 0 / 0.5141 GB, free: 54.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.762e-05/1.749, allocations: 3.953 kB / 0.5141 GB, free: 54.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.974e-06/1.749, allocations: 9.156 kB / 0.5141 GB, free: 54.54 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.579e-05/1.749, allocations: 135.5 kB / 0.5143 GB, free: 54.39 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.252e-05/1.749, allocations: 7.141 kB / 0.5143 GB, free: 54.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.056e-05/1.749, allocations: 3.125 kB / 0.5143 GB, free: 54.39 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.007e-06/1.749, allocations: 0 / 0.5143 GB, free: 54.39 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.341e-06/1.749, allocations: 0 / 0.5143 GB, free: 54.39 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.626e-06/1.749, allocations: 0 / 0.5143 GB, free: 54.39 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.707e-05/1.749, allocations: 149.6 kB / 0.5144 GB, free: 54.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-06/1.749, allocations: 0 / 0.5144 GB, free: 54.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.919e-06/1.749, allocations: 8 kB / 0.5144 GB, free: 54.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.449e-06/1.749, allocations: 3.562 kB / 0.5144 GB, free: 54.18 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.959e-06/1.749, allocations: 0 / 0.5144 GB, free: 54.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.69e-06/1.749, allocations: 0 / 0.5144 GB, free: 54.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.638e-06/1.749, allocations: 0 / 0.5144 GB, free: 54.18 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.758e-05/1.749, allocations: 102.7 kB / 0.5145 GB, free: 54.06 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.634e-05/1.749, allocations: 77.11 kB / 0.5146 GB, free: 53.96 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/1.749, allocations: 0 / 0.5146 GB, free: 53.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.224e-05/1.749, allocations: 4.031 kB / 0.5146 GB, free: 53.96 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.226e-05/1.749, allocations: 4 kB / 0.5146 GB, free: 53.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.372e-06/1.749, allocations: 0 / 0.5146 GB, free: 53.96 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.346e-05/1.749, allocations: 75.28 kB / 0.5147 GB, free: 53.88 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.76e-07/1.749, allocations: 0 / 0.5147 GB, free: 53.88 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006591/1.756, allocations: 1.532 MB / 0.5162 GB, free: 52.37 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.01199/1.768, allocations: 2.025 MB / 0.5182 GB, free: 50.38 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.796e-05/1.768, allocations: 59.41 kB / 0.5182 GB, free: 50.31 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.632e-06/1.768, allocations: 0 / 0.5182 GB, free: 50.31 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.663e-05/1.768, allocations: 63.33 kB / 0.5183 GB, free: 50.24 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.94e-05/1.768, allocations: 5.203 kB / 0.5183 GB, free: 50.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001497/1.769, allocations: 116.4 kB / 0.5184 GB, free: 50.09 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.735e-05/1.769, allocations: 0.6731 MB / 0.519 GB, free: 49.39 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.001e-05/1.769, allocations: 11.44 kB / 0.5191 GB, free: 49.38 MB / 394.7 MB Notification: Performance of SimCode: time 1.269e-06/1.769, allocations: 0 / 0.5191 GB, free: 49.38 MB / 394.7 MB Notification: Performance of Templates: time 0.1438/1.913, allocations: 84.93 MB / 0.602 GB, free: 12.35 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.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.TestTruncatedDistributionsCalcHelperMain.o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.cpp\nIn file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.cpp:28:\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:9170: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.TestTruncatedDistributionsFunctions.cpp:9145:14: note: \'_omcQ_24tmpVar3_\' declared here\n double _omcQ_24tmpVar3_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:10227:66: error: use of undeclared identifier \'_omcQ_24tmpVar5_\'; did you mean \'_omcQ_24tmpVar6_\'?\n Modelica_Math_Distributions_TruncatedNormal_cumulative(_omcQ_24tmpVar5_, -1.5, 1.5, 0.0, 0.5,tmp3083);\n ^~~~~~~~~~~~~~~~\n _omcQ_24tmpVar6_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:10204:14: note: \'_omcQ_24tmpVar6_\' declared here\n double _omcQ_24tmpVar6_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:12301: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.TestTruncatedDistributionsFunctions.cpp:12276:14: note: \'_omcQ_24tmpVar9_\' declared here\n double _omcQ_24tmpVar9_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:13358:67: error: use of undeclared identifier \'_omcQ_24tmpVar11_\'; did you mean \'_omcQ_24tmpVar12_\'?\n Modelica_Math_Distributions_TruncatedWeibull_cumulative(_omcQ_24tmpVar11_, 0.0, 0.8, 0.5, 2.0,tmp6105);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar12_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:13335:14: note: \'_omcQ_24tmpVar12_\' declared here\n double _omcQ_24tmpVar12_;\n ^\n4 errors generated.\n: recipe for target \'OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.o\' failed\nmake: *** [OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsCalcHelperMain.o] Error 1\n'