Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.39/2.39, allocations: 234.9 MB / 251.1 MB, free: 9.688 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004247/0.0004246, allocations: 12 kB / 314.9 MB, free: 9.742 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3861/0.3866, allocations: 54.86 MB / 369.8 MB, free: 12.78 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1657/0.5524, allocations: 83.49 MB / 453.3 MB, free: 9.168 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.5527, allocations: 67.97 kB / 453.4 MB, free: 9.102 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.66/2.213, allocations: 71.87 MB / 0.5129 GB, free: 120.1 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.715e-06/2.213, allocations: 3.812 kB / 0.5129 GB, free: 120.1 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.362e-06/2.213, allocations: 4 kB / 0.5129 GB, free: 120.1 MB / 426.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.006661/2.22, allocations: 461.9 kB / 0.5134 GB, free: 119.7 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/2.22, allocations: 9.656 kB / 0.5134 GB, free: 119.7 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.724e-05/2.22, allocations: 0 / 0.5134 GB, free: 119.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.628e-05/2.22, allocations: 162.2 kB / 0.5135 GB, free: 119.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/2.22, allocations: 0 / 0.5135 GB, free: 119.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.67e-05/2.22, allocations: 4 kB / 0.5135 GB, free: 119.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.791e-05/2.22, allocations: 28.27 kB / 0.5136 GB, free: 119.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/2.22, allocations: 0 / 0.5136 GB, free: 119.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/2.22, allocations: 0.5156 kB / 0.5136 GB, free: 119.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/2.22, allocations: 3.953 kB / 0.5136 GB, free: 119.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.534e-05/2.22, allocations: 7.156 kB / 0.5136 GB, free: 119.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001364/2.22, allocations: 153.7 kB / 0.5137 GB, free: 119.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.714e-05/2.221, allocations: 21.02 kB / 0.5137 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.051e-05/2.221, allocations: 4 kB / 0.5137 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/2.221, allocations: 56.27 kB / 0.5138 GB, free: 119.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 2.154e-06/2.221, allocations: 0 / 0.5138 GB, free: 119.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.000214/2.221, allocations: 67.61 kB / 0.5139 GB, free: 119.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/2.221, allocations: 84.98 kB / 0.5139 GB, free: 119 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.192e-05/2.221, allocations: 89.86 kB / 0.514 GB, free: 118.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/2.221, allocations: 25.7 kB / 0.5141 GB, free: 118.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.318e-05/2.221, allocations: 154.7 kB / 0.5142 GB, free: 118.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/2.221, allocations: 0 / 0.5142 GB, free: 118.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-06/2.221, allocations: 3.828 kB / 0.5142 GB, free: 118.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.97e-05/2.221, allocations: 314.8 kB / 0.5145 GB, free: 118.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.456e-05/2.221, allocations: 0 / 0.5145 GB, free: 118.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.124e-05/2.221, allocations: 3.625 kB / 0.5145 GB, free: 118.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.521e-05/2.221, allocations: 29.69 kB / 0.5145 GB, free: 118.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/2.221, allocations: 0 / 0.5145 GB, free: 118.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001406/2.221, allocations: 66.25 kB / 0.5146 GB, free: 118.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.83e-05/2.222, allocations: 37.36 kB / 0.5146 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/2.222, allocations: 0 / 0.5146 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/2.222, allocations: 0 / 0.5146 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.375e-06/2.222, allocations: 3.938 kB / 0.5146 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/2.222, allocations: 0 / 0.5146 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.523e-05/2.222, allocations: 3.875 kB / 0.5146 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/2.222, allocations: 3.984 kB / 0.5147 GB, free: 118.2 MB / 426.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 8.482e-05/2.222, allocations: 135.5 kB / 0.5148 GB, free: 118.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.556e-05/2.222, allocations: 3.156 kB / 0.5148 GB, free: 118.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.567e-05/2.222, allocations: 7.125 kB / 0.5148 GB, free: 118.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/2.222, allocations: 0 / 0.5148 GB, free: 118.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/2.222, allocations: 0 / 0.5148 GB, free: 118.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/2.222, allocations: 0 / 0.5148 GB, free: 118.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.22e-05/2.222, allocations: 153.6 kB / 0.5149 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/2.222, allocations: 0 / 0.5149 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.896e-06/2.222, allocations: 0.875 kB / 0.5149 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/2.222, allocations: 0 / 0.5149 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/2.222, allocations: 4 kB / 0.5149 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/2.222, allocations: 0 / 0.5149 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/2.222, allocations: 4 kB / 0.5149 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000127/2.222, allocations: 97.72 kB / 0.515 GB, free: 117.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.445e-05/2.222, allocations: 77.11 kB / 0.5151 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/2.222, allocations: 6 kB / 0.5151 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.919e-05/2.222, allocations: 0 / 0.5151 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.052e-05/2.222, allocations: 0 / 0.5151 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.313e-06/2.222, allocations: 3.406 kB / 0.5151 GB, free: 117.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.119e-05/2.222, allocations: 79.31 kB / 0.5152 GB, free: 117.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.733e-06/2.222, allocations: 0 / 0.5152 GB, free: 117.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01453/2.237, allocations: 1.531 MB / 0.5167 GB, free: 117.5 MB / 426.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.02478/2.262, allocations: 2.027 MB / 0.5187 GB, free: 115.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001373/2.262, allocations: 63.41 kB / 0.5187 GB, free: 115.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/2.262, allocations: 0 / 0.5187 GB, free: 115.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.598e-05/2.262, allocations: 59.41 kB / 0.5188 GB, free: 115.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001538/2.262, allocations: 7.938 kB / 0.5188 GB, free: 115.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001995/2.262, allocations: 104.3 kB / 0.5189 GB, free: 115.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/2.263, allocations: 0.677 MB / 0.5196 GB, free: 114.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.441e-05/2.263, allocations: 7.438 kB / 0.5196 GB, free: 114.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.042e-06/2.263, allocations: 4.672 kB / 0.5196 GB, free: 114.7 MB / 426.7 MB Notification: Performance of Templates: time 0.2688/2.531, allocations: 84.94 MB / 0.6025 GB, free: 29.72 MB / 426.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=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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'