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.149/2.149, allocations: 235 MB / 248.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.784e-05/2.794e-05, allocations: 7.984 kB / 309.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3083, allocations: 54.85 MB / 364.5 MB, free: 5.516 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1231/0.4314, allocations: 83.42 MB / 448 MB, free: 13.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/0.4317, allocations: 71.91 kB / 448 MB, free: 13 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.099/1.531, allocations: 71.83 MB / 0.5077 GB, free: 5.102 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.002e-06/1.531, allocations: 0 / 0.5077 GB, free: 5.102 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.367e-06/1.531, allocations: 0 / 0.5077 GB, free: 5.102 MB / 442.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.00317/1.534, allocations: 455.9 kB / 0.5081 GB, free: 4.605 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/1.534, allocations: 12.88 kB / 0.5081 GB, free: 4.594 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/1.534, allocations: 0 / 0.5081 GB, free: 4.594 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/1.534, allocations: 163 kB / 0.5083 GB, free: 4.395 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/1.534, allocations: 7.984 kB / 0.5083 GB, free: 4.387 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/1.534, allocations: 0 / 0.5083 GB, free: 4.387 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.97e-05/1.534, allocations: 29.7 kB / 0.5083 GB, free: 4.352 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.115e-06/1.534, allocations: 3.953 kB / 0.5083 GB, free: 4.348 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.846e-06/1.534, allocations: 3.984 kB / 0.5083 GB, free: 4.344 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.76e-06/1.534, allocations: 0 / 0.5083 GB, free: 4.344 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.185e-05/1.534, allocations: 8.656 kB / 0.5083 GB, free: 4.336 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001458/1.534, allocations: 141.7 kB / 0.5085 GB, free: 4.148 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.473e-05/1.534, allocations: 22.52 kB / 0.5085 GB, free: 4.117 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.448e-05/1.534, allocations: 8.953 kB / 0.5085 GB, free: 4.105 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.506e-06/1.534, allocations: 3.938 kB / 0.5085 GB, free: 4.102 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.555e-05/1.535, allocations: 60.27 kB / 0.5085 GB, free: 4.027 MB / 442.7 MB Notification: Performance of pre-optimization done (n=1): time 1.922e-06/1.535, allocations: 0 / 0.5085 GB, free: 4.027 MB / 442.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001615/1.535, allocations: 68.38 kB / 0.5086 GB, free: 3.949 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/1.535, allocations: 77.11 kB / 0.5087 GB, free: 3.855 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.93e-05/1.535, allocations: 89.03 kB / 0.5088 GB, free: 3.762 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/1.535, allocations: 25.7 kB / 0.5088 GB, free: 3.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.738e-05/1.535, allocations: 150.6 kB / 0.5089 GB, free: 3.582 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.978e-05/1.535, allocations: 4 kB / 0.5089 GB, free: 3.578 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.971e-06/1.535, allocations: 3.938 kB / 0.5089 GB, free: 3.574 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/1.535, allocations: 310.8 kB / 0.5092 GB, free: 3.262 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-06/1.535, allocations: 0 / 0.5092 GB, free: 3.262 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.73e-06/1.535, allocations: 4 kB / 0.5092 GB, free: 3.258 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.167e-05/1.535, allocations: 37.75 kB / 0.5093 GB, free: 3.215 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.183e-06/1.535, allocations: 1.5 kB / 0.5093 GB, free: 3.215 MB / 442.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001005/1.535, allocations: 59.41 kB / 0.5093 GB, free: 3.145 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/1.535, allocations: 31.58 kB / 0.5094 GB, free: 3.109 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.751e-06/1.535, allocations: 0 / 0.5094 GB, free: 3.109 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/1.535, allocations: 0 / 0.5094 GB, free: 3.109 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.677e-06/1.535, allocations: 0 / 0.5094 GB, free: 3.109 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/1.535, allocations: 3.953 kB / 0.5094 GB, free: 3.105 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.956e-05/1.536, allocations: 4 kB / 0.5094 GB, free: 3.102 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.222e-06/1.536, allocations: 0 / 0.5094 GB, free: 3.102 MB / 442.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.0001016/1.536, allocations: 134.7 kB / 0.5095 GB, free: 2.957 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.707e-05/1.536, allocations: 7.906 kB / 0.5095 GB, free: 2.949 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.771e-05/1.536, allocations: 7.078 kB / 0.5095 GB, free: 2.941 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.178e-06/1.536, allocations: 3.938 kB / 0.5095 GB, free: 2.938 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.392e-06/1.536, allocations: 0 / 0.5095 GB, free: 2.938 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.223e-06/1.536, allocations: 3.953 kB / 0.5095 GB, free: 2.934 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001237/1.536, allocations: 149.7 kB / 0.5097 GB, free: 2.738 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/1.536, allocations: 3.938 kB / 0.5097 GB, free: 2.734 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.338e-06/1.536, allocations: 4 kB / 0.5097 GB, free: 2.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.031e-06/1.536, allocations: 4 kB / 0.5097 GB, free: 2.727 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.256e-06/1.536, allocations: 0 / 0.5097 GB, free: 2.727 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.971e-06/1.536, allocations: 1.562 kB / 0.5097 GB, free: 2.727 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.205e-06/1.536, allocations: 0 / 0.5097 GB, free: 2.727 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001332/1.536, allocations: 102.7 kB / 0.5098 GB, free: 2.602 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.537e-05/1.536, allocations: 77.11 kB / 0.5099 GB, free: 2.508 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/1.536, allocations: 0 / 0.5099 GB, free: 2.508 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.612e-05/1.536, allocations: 4 kB / 0.5099 GB, free: 2.504 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.163e-05/1.536, allocations: 4.031 kB / 0.5099 GB, free: 2.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/1.536, allocations: 0 / 0.5099 GB, free: 2.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 4.162e-05/1.536, allocations: 78.5 kB / 0.5099 GB, free: 2.426 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.83e-07/1.536, allocations: 0 / 0.5099 GB, free: 2.426 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007873/1.544, allocations: 1.519 MB / 0.5114 GB, free: 0.9062 MB / 442.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.01249/1.557, allocations: 2.034 MB / 0.5134 GB, free: 14.87 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001233/1.557, allocations: 56.16 kB / 0.5135 GB, free: 14.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.705e-06/1.557, allocations: 4 kB / 0.5135 GB, free: 14.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 4.929e-05/1.557, allocations: 59.34 kB / 0.5135 GB, free: 14.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.739e-05/1.557, allocations: 3.953 kB / 0.5135 GB, free: 14.72 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001699/1.557, allocations: 78.81 kB / 0.5136 GB, free: 14.61 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/1.558, allocations: 0.6731 MB / 0.5143 GB, free: 13.91 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.602e-05/1.558, allocations: 11.44 kB / 0.5143 GB, free: 13.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.439e-06/1.558, allocations: 0 / 0.5143 GB, free: 13.9 MB / 458.7 MB Notification: Performance of Templates: time 0.4013/1.959, allocations: 84.19 MB / 0.5965 GB, free: 92.76 MB / 458.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: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.TestTruncatedDistributionsFunctions.cpp:9145:14: note: \'D_24tmpVar3_\' declared here\n double D_24tmpVar3_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:10227:66: error: use of undeclared identifier \'D_24tmpVar5_\'; did you mean \'D_24tmpVar6_\'?\n Modelica_Math_Distributions_TruncatedNormal_cumulative(D_24tmpVar5_, -1.5, 1.5, 0.0, 0.5,tmp3083);\n ^~~~~~~~~~~~\n D_24tmpVar6_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:10204:14: note: \'D_24tmpVar6_\' declared here\n double D_24tmpVar6_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:12301: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.TestTruncatedDistributionsFunctions.cpp:12276:14: note: \'D_24tmpVar9_\' declared here\n double D_24tmpVar9_;\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:13358:67: error: use of undeclared identifier \'D_24tmpVar11_\'; did you mean \'D_24tmpVar12_\'?\n Modelica_Math_Distributions_TruncatedWeibull_cumulative(D_24tmpVar11_, 0.0, 0.8, 0.5, 2.0,tmp6105);\n ^~~~~~~~~~~~~\n D_24tmpVar12_\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestTruncatedDistributionsFunctions.cpp:13335:14: note: \'D_24tmpVar12_\' declared here\n double D_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'